|
From: Heiko Z. <smi...@us...> - 2004-12-31 00:36:59
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24861/scripts Modified Files: functions Log Message: automatically set debug options to N Index: functions =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/functions,v retrieving revision 1.61 retrieving revision 1.62 diff -u -d -r1.61 -r1.62 --- functions 29 Dec 2004 03:14:27 -0000 1.61 +++ functions 31 Dec 2004 00:36:50 -0000 1.62 @@ -435,16 +435,20 @@ # don't remove the 'sort' command, we use it to add a necessary newline before 'column' for CFG in $( grep -s -v "^#" $FILE | grep ^config -A 1 | sed -e s/config/""/g | tr -d "\n" | sed -e s/--/"\n"/g | sort | column -t 2> /dev/null | fmt -u -s -w 9999 | cut -f -2 -d " " | sed -e s/" "/#/g ); do CFGOPTION="CONFIG_"${CFG%%#*} - case ${CFG##*#} in - tristate) set_kernel_option $CFGOPTION m + if [ -n "$(echo $CFGOPTION | grep DEBUG 2> /dev/null)" ]; then + set_kernel_option $CFGOPTION n + else + case ${CFG##*#} in + tristate) set_kernel_option $CFGOPTION m ;; - bool) set_kernel_option $CFGOPTION y + bool) set_kernel_option $CFGOPTION y ;; - *) + *) echo "ignoring unkown config type '${CFG##*#}' for '$CFGOPTION'" #exit 1 - ;; - esac + ;; + esac + fi done done fi |