patch-2.1.78 linux/scripts/Menuconfig
Next file: linux/scripts/checkconfig.pl
Previous file: linux/scripts/Makefile
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Mon Jan 5 01:41:01 1998
- Orig file:
v2.1.77/linux/scripts/Menuconfig
- Orig date:
Fri Jan 2 14:37:03 1998
diff -u --recursive --new-file v2.1.77/linux/scripts/Menuconfig linux/scripts/Menuconfig
@@ -31,6 +31,11 @@
# 081297 Pavel Machek (pavel@atrey.karlin.mff.cuni.cz) - better error
# handling
#
+# 131197 Michael Chastain (mec@shout.net) - output all lines for a
+# choice list, not just the selected one. This makes the output
+# the same as Configure output, which is important for smart config
+# dependencies.
+#
# 101297 Michael Chastain (mec@shout.net) - remove sound driver cruft.
#
# 221297 Michael Chastain (mec@shout.net) - make define_bool actually
@@ -1051,11 +1056,19 @@
: ${current:=$default}
#
- # Then extract the actual option from the list of choices.
+ # Output all choices (to be compatible with other configs).
#
- current=${choices#*$current} ; set $current
-
- define_bool "$1" "y"
+ set -- $choices
+ while [ -n "$2" ]
+ do
+ if eval [ "$1" = "$current" ]
+ then
+ define_bool "$2" "y"
+ else
+ define_bool "$2" "n"
+ fi
+ shift ; shift
+ done
}
function mainmenu_name () {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov