1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

installCDE: Only install locales that were built

We pass the DtLocalesToBuild to installCDE.src, which can then check
to see what locales were built.  We then only install packages for
those locales.
This commit is contained in:
Jon Trulson 2018-06-01 19:47:41 -06:00
parent ad10797184
commit fd9e74ae42
2 changed files with 42 additions and 22 deletions

View file

@ -1,10 +1,13 @@
XCOMM $XConsortium: Imakefile /main/5 1996/04/23 21:26:14 drk $ XCOMM $XConsortium: Imakefile /main/5 1996/04/23 21:26:14 drk $
DT_LOCALES = DtLocalesToBuild
LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \ LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
-DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \ -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
-DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP) \ -DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP) \
-DKORNSHELL=$(KORNSHELL) \ -DKORNSHELL=$(KORNSHELL) \
-Usun -Uaix -UAIX -Uibm -Uhp -Usun -Uaix -UAIX -Uibm -Uhp \
-DbuiltLocales="\"${DT_LOCALES}\""
AllTarget(installCDE dinstallCDE) AllTarget(installCDE dinstallCDE)

View file

@ -33,7 +33,7 @@ XCOMM -pack -- create packing list
XCOMM -pseudo -- don't configure the desktop XCOMM -pseudo -- don't configure the desktop
XCOMM -nocompress -- don't compress the tarball (-t only) XCOMM -nocompress -- don't compress the tarball (-t only)
XCOMM XCOMM
XCOMM -Lang -- load the localized filesets XCOMM -lang -- load the localized filesets
XCOMM -LinkStepOnly -- set up the -pI, -pC, and -pV links XCOMM -LinkStepOnly -- set up the -pI, -pC, and -pV links
XCOMM then exit XCOMM then exit
XCOMM -DontRunScripts -- stop after installation XCOMM -DontRunScripts -- stop after installation
@ -487,8 +487,8 @@ echo -e "\t[-relative]\t\t\trun the relative-located config scripts"
echo -e "\t[-pack]\t\t\t\tcreate a packing list" echo -e "\t[-pack]\t\t\t\tcreate a packing list"
echo -e "\t[-pseudo]\t\t\tdo not configure desktop when installing" echo -e "\t[-pseudo]\t\t\tdo not configure desktop when installing"
echo -e "\t[-nocompress]\t\t\tdo not compress tarball when creating package" echo -e "\t[-nocompress]\t\t\tdo not compress tarball when creating package"
echo -e "\t[-lang LANG]\t\t\tspecify LANG to load appropriate localized" echo -e "\t[-lang LANG]\t\t\tspecify LANG to load only appropriate localized"
echo -e "\t\t\t\t\tfilesets" echo -e "\t\t\t\t\tfilesets for LANG"
echo -e "\t[-LeaveLinks]\t\t\t\tdo not delete the links after cleaning" echo -e "\t[-LeaveLinks]\t\t\t\tdo not delete the links after cleaning"
echo -e "" echo -e ""
echo -e "\t[-LinkStepOnly]\t\t\tset up the -pI, -pC, and -pV links" echo -e "\t[-LinkStepOnly]\t\t\tset up the -pI, -pC, and -pV links"
@ -545,7 +545,6 @@ XCOMM don't bother if the fileset doesn't exist
cat /tmp/${2}.missing | tee -a $LOGFILE cat /tmp/${2}.missing | tee -a $LOGFILE
fi fi
} }
ORIGINAL_COMMAND_LINE="$*" ORIGINAL_COMMAND_LINE="$*"
XCOMM Set which system we are on XCOMM Set which system we are on
@ -628,7 +627,8 @@ XCOMM
theLang="" theLang=""
CONFIGURE_ONLY="no" CONFIGURE_ONLY="no"
DESTINATION_DIR="/" DESTINATION_DIR="/"
BUILT_LOCALES=builtLocales
Log "Built locales: $BUILT_LOCALES"
rm -f $LOGFILE rm -f $LOGFILE
@ -901,31 +901,48 @@ XCOMM
CDE-PRG CDE-INC CDE-DEMOS CDE-MAN-DEV CDE-ICONS \ CDE-PRG CDE-INC CDE-DEMOS CDE-MAN-DEV CDE-ICONS \
CDE-FONTS CDE-INFO CDE-INFOLIB-C" CDE-FONTS CDE-INFO CDE-INFOLIB-C"
fi fi
HASH now load any localized filesets HASH now load any localized filesets
if [ "$DEVELOP_ENV" != "yes" ] if [ "$DEVELOP_ENV" != "yes" ]
then then
if [ "$theLang" != "" ] if [ "$theLang" != "" ]
then then
DATABASE_FILES="$DATABASE_FILES CDE-$theLang CDE-MSG-$theLang \ DATABASE_FILES="$DATABASE_FILES CDE-$theLang CDE-MSG-$theLang \
CDE-HELP-$theLang" CDE-HELP-$theLang"
else else
HASH load all current (working) languages HASH load all current (working) languages in $BUILT_LOCALES
DATABASE_FILES="$DATABASE_FILES \
CDE-DE \ HASH German
CDE-MSG-DE \ if [ "${BUILT_LOCALES#*_DE}" != "$BUILT_LOCALES" ]
CDE-HELP-DE \ then
CDE-ES \ DATABASE_FILES="$DATABASE_FILES CDE-DE CDE-MSG-DE \
CDE-MSG-ES \ CDE-HELP-DE"
CDE-HELP-ES \ fi
CDE-FR \
CDE-MSG-FR \ HASH French
CDE-HELP-FR \ if [ "${BUILT_LOCALES#*_FR}" != "$BUILT_LOCALES" ]
CDE-IT \ then
CDE-MSG-IT \ DATABASE_FILES="$DATABASE_FILES CDE-FR CDE-MSG-FR \
CDE-HELP-IT " CDE-HELP-FR"
fi
HASH Italian
if [ "${BUILT_LOCALES#*_IT}" != "$BUILT_LOCALES" ]
then
DATABASE_FILES="$DATABASE_FILES CDE-IT CDE-MSG-IT \
CDE-HELP-IT"
fi
HASH Spanish
if [ "${BUILT_LOCALES#*_ES}" != "$BUILT_LOCALES" ]
then
DATABASE_FILES="$DATABASE_FILES CDE-ES CDE-MSG-ES \
CDE-HELP-ES"
fi
fi fi
fi fi
fi fi
[ -z "$INSTALL_LOCATION" ] && INSTALL_LOCATION=CDE_INSTALLATION_TOP [ -z "$INSTALL_LOCATION" ] && INSTALL_LOCATION=CDE_INSTALLATION_TOP
@ -1010,7 +1027,7 @@ XCOMM
fi fi
Log " " Log " "
Log "Desktop installed in $DESTINATION_DIR/$INSTALL_LOCATION" Log "Desktop installed in ${DESTINATION_DIR}${INSTALL_LOCATION}"
if [ "$DO_INSTALL_ONLY" = "yes" ] if [ "$DO_INSTALL_ONLY" = "yes" ]
then then