Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv19125/scripts
Modified Files:
menuconfig settings
Log Message:
added profiles to build system
Index: menuconfig
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/menuconfig,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- menuconfig 29 Dec 2003 23:37:49 -0000 1.27
+++ menuconfig 30 Dec 2003 00:41:13 -0000 1.28
@@ -29,7 +29,7 @@
fi
if [ -f $BUILD_CONFIG ]; then
- rm $BUILD_CONFIG-tmp
+ test -f $BUILD_CONFIG-tmp && rm $BUILD_CONFIG-tmp
source $BUILD_CONFIG
for CFG in $(cat $BUILD_CONFIG | cut -d= -f1 | sort -u)
do
@@ -37,7 +37,13 @@
echo $CFG=$VALUE >> $BUILD_CONFIG-tmp
done
else
- echo "# Devil-Linux config file for optional packages" > $BUILD_CONFIG-tmp
+ # ask is we should load the default config
+ $DIALOG --yesno "No Configuration found, should I load the default profile?" 5 70
+ if [ $? = 0 ]; then
+ cp $DL_DIR/scripts/configuration/profiles/default $BUILD_CONFIG-tmp || exit 1
+ else
+ echo "# Devil-Linux config file for optional packages" > $BUILD_CONFIG-tmp
+ fi
fi
echo "#!/bin/bash" > $WORKDIR/.configure
Index: settings
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/settings,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- settings 24 Dec 2003 23:07:30 -0000 1.38
+++ settings 30 Dec 2003 00:41:13 -0000 1.39
@@ -17,6 +17,8 @@
DONE=$WORKDIR/.done
BUILD_CONFIG=$DL_DIR/.config
+test -n "$PROFILE" && BUILD_CONFIG=$DL_DIR/scripts/configuration/profiles/$PROFILE
+
test -s $BUILD_CONFIG && test -z "$NOTLOAD_DEFAULTCONFIG" && source $BUILD_CONFIG
PMAKE=""
test -n "$CONFIG_PMAKE" && PMAKE="-j$CONFIG_PMAKE"
|