mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
installCDE.src: Add a -destdir <dir> option
Using this option, all files are installed under <dir> rather than root '/'.
This commit is contained in:
parent
297b6bd845
commit
d6d055c981
1 changed files with 26 additions and 2 deletions
|
@ -493,6 +493,7 @@ echo -e "\t\t\t\t\tthen exit"
|
||||||
echo -e "\t[-DontRunScripts]\t\tstop after installation"
|
echo -e "\t[-DontRunScripts]\t\tstop after installation"
|
||||||
echo -e "\t[-RunScriptsOnly]\t\tonly execute the scripts"
|
echo -e "\t[-RunScriptsOnly]\t\tonly execute the scripts"
|
||||||
echo -e "\t[-configureOnly]\t\tonly configure the desktop"
|
echo -e "\t[-configureOnly]\t\tonly configure the desktop"
|
||||||
|
echo -e "\t[-destdir dir]\t\tInstall all files under dir/"
|
||||||
echo -e ""
|
echo -e ""
|
||||||
echo -e "\tExamples:"
|
echo -e "\tExamples:"
|
||||||
echo -e ""
|
echo -e ""
|
||||||
|
@ -527,7 +528,7 @@ XCOMM don't bother if the fileset doesn't exist
|
||||||
KORNSHELL $TOOL_DIR/udbToAny.ksh -toLst -ReleaseStream $PLATFORM \
|
KORNSHELL $TOOL_DIR/udbToAny.ksh -toLst -ReleaseStream $PLATFORM \
|
||||||
$DATABASE_DIR/${2}.udb > /tmp/${2}.lst
|
$DATABASE_DIR/${2}.udb > /tmp/${2}.lst
|
||||||
Log " - installing ... "
|
Log " - installing ... "
|
||||||
KORNSHELL $TOOL_DIR/mkProd -D / -S $BUILD_TREE /tmp/${2}.lst \
|
KORNSHELL $TOOL_DIR/mkProd -D $DESTINATION_DIR -S $BUILD_TREE /tmp/${2}.lst \
|
||||||
2>/tmp/${2}.err 1>/tmp/${2}.good
|
2>/tmp/${2}.err 1>/tmp/${2}.good
|
||||||
Log " done."
|
Log " done."
|
||||||
|
|
||||||
|
@ -623,6 +624,8 @@ XCOMM
|
||||||
CLEAN_DAEMONS="yes"
|
CLEAN_DAEMONS="yes"
|
||||||
theLang=""
|
theLang=""
|
||||||
CONFIGURE_ONLY="no"
|
CONFIGURE_ONLY="no"
|
||||||
|
DESTINATION_DIR="/"
|
||||||
|
|
||||||
|
|
||||||
rm -f $LOGFILE
|
rm -f $LOGFILE
|
||||||
|
|
||||||
|
@ -788,6 +791,15 @@ XCOMM
|
||||||
CLEAN_DAEMONS="yes"
|
CLEAN_DAEMONS="yes"
|
||||||
shift;
|
shift;
|
||||||
;;
|
;;
|
||||||
|
-destdir) Log " - Destination Directory"
|
||||||
|
shift;
|
||||||
|
[ $# -ne 0 ] || {
|
||||||
|
USAGE
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
|
DESTINATION_DIR="$1"
|
||||||
|
shift;
|
||||||
|
;;
|
||||||
*) Log " - unknown option"
|
*) Log " - unknown option"
|
||||||
USAGE
|
USAGE
|
||||||
exit 1;
|
exit 1;
|
||||||
|
@ -815,6 +827,18 @@ XCOMM
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$DESTINATION_DIR" != "" -a ! -d "$DESTINATION_DIR" ]
|
||||||
|
then
|
||||||
|
Log "Creating $DESTINATION_DIR"
|
||||||
|
mkdir $DESTINATION_DIR
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
Log "mkdir $DESTINATION_DIR failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
CDEPACKAGE=dt.pkg
|
CDEPACKAGE=dt.pkg
|
||||||
CDETARFILE=dt.tar
|
CDETARFILE=dt.tar
|
||||||
CDETARFILEZ=dttar.Z
|
CDETARFILEZ=dttar.Z
|
||||||
|
@ -983,7 +1007,7 @@ XCOMM
|
||||||
fi
|
fi
|
||||||
|
|
||||||
Log " "
|
Log " "
|
||||||
Log "Desktop installed in $INSTALL_LOCATION"
|
Log "Desktop installed in $DESTINATION_DIR/$INSTALL_LOCATION"
|
||||||
|
|
||||||
if [ "$DO_INSTALL_ONLY" = "yes" ]
|
if [ "$DO_INSTALL_ONLY" = "yes" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue