File: linux-2.4.0-nonintconfig.patch

package info (click to toggle)
openswan 1%3A2.4.6%2Bdfsg.2-1.1%2Betch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 25,000 kB
  • ctags: 16,877
  • sloc: ansic: 121,112; sh: 19,782; xml: 9,699; asm: 4,422; perl: 4,087; makefile: 3,367; tcl: 713; exp: 657; yacc: 396; pascal: 328; lex: 289; sed: 265; awk: 124; lisp: 3
file content (70 lines) | stat: -rw-r--r-- 1,467 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
--- /tmp/linux/Makefile	Fri Jan 12 10:38:19 2001
+++ linux/Makefile	Fri Jan 12 10:34:21 2001
@@ -265,6 +265,9 @@
 oldconfig: symlinks
 	$(CONFIG_SHELL) scripts/Configure -d arch/$(ARCH)/config.in
 
+oldconfig_nonint: symlinks
+	$(CONFIG_SHELL) scripts/Configure -D arch/$(ARCH)/config.in
+
 xconfig: symlinks
 	$(MAKE) -C scripts kconfig.tk
 	wish -f scripts/kconfig.tk
--- /tmp/linux/scripts/Configure	Sat Dec 30 21:16:13 2000
+++ linux/scripts/Configure	Fri Jan 12 10:36:51 2001
@@ -121,8 +121,14 @@
 	else
 		echo -n "$1"
 		[ -z "$3" ] && echo -n "(NEW) "
-		IFS='@' read ans || exit 1
-		[ -z "$ans" ] && ans=$2
+		if [ "$NONINTERACTIVE" = "y" ]; then
+			echo "$1" >> nodefaults
+			broken="y"
+			ans="n"
+		else
+			IFS='@' read ans || exit 1
+			[ -z "$ans" ] && ans=$2
+		fi
 	fi
 }
 
@@ -519,6 +525,7 @@
 CONFIG=.tmpconfig
 CONFIG_H=.tmpconfig.h
 trap "rm -f $CONFIG $CONFIG_H ; exit 1" 1 2
+trap "rm -f nodefaults ; exit 1" 1 2
 
 #
 # Make sure we start out with a clean slate.
@@ -533,11 +540,20 @@
 echo "#define AUTOCONF_INCLUDED" >> $CONFIG_H
 
 DEFAULT=""
+NONINTERACTIVE=""
+
 if [ "$1" = "-d" ] ; then
 	DEFAULT="-d"
 	shift
 fi
 
+if [ "$1" = "-D" ] ; then
+# non interactive oldconfig
+	DEFAULT="-d"
+	NONINTERACTIVE="y"
+	shift
+fi
+
 CONFIG_IN=./config.in
 if [ "$1" != "" ] ; then
 	CONFIG_IN=$1
@@ -581,4 +597,9 @@
 fi
 echo
 
+if [ "$broken" = "y" ] ; then
+ echo "The following defaults are missing:"
+ cat nodefaults
+ exit 1
+fi
 exit 0