patch-1.3.59 linux/scripts/Configure
Next file: linux/scripts/depend.awk
Previous file: linux/mm/vmscan.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Tue Jan 23 21:41:34 1996
- Orig file:
v1.3.58/linux/scripts/Configure
- Orig date:
Tue Jan 23 21:15:56 1996
diff -u --recursive --new-file v1.3.58/linux/scripts/Configure linux/scripts/Configure
@@ -263,7 +263,8 @@
while :; do
readln "$1 ($2) [$def] " "$def"
case "$ans" in
- [1-9] | [1-9][0-9] | [1-9][0-9][0-9] | [1-9][0-9][0-9][0-9] )
+ -1 | [1-9] | [1-9][0-9] |\
+ [1-9][0-9][0-9] | [1-9][0-9][0-9][0-9] | [1-9][0-9][0-9][0-9][0-9])
define_int "$2" "$ans"
break;;
* ) help "$2"
@@ -278,7 +279,7 @@
#
function define_hex () {
echo "$1=$2" >>$CONFIG
- echo "#define $1 0x$2" >>$CONFIG_H
+ echo "#define $1 0x${2#*[x,X]}" >>$CONFIG_H
eval "$1=$2"
}
@@ -289,10 +290,15 @@
#
function hex () {
def=$(eval echo "\${$2:-$3}")
+ def=${def#*[x,X]}
while :; do
readln "$1 ($2) [$def] " "$def"
+ ans=${ans#*[x,X]}
case "$ans" in
- [1-9] | [1-9][0-9] | [1-9][0-9][0-9] | [1-9][0-9][0-9][0-9] )
+ [0-9,a-f,A-F] |\
+ [0-9,a-f,A-F][0-9,a-f,A-F] |\
+ [0-9,a-f,A-F][0-9,a-f,A-F][0-9,a-f,A-F] |\
+ [0-9,a-f,A-F][0-9,a-f,A-F][0-9,a-f,A-F][0-9,a-f,A-F])\
define_hex "$2" "$ans"
break;;
* ) help "$2"
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this