File: Configure.patch

package info (click to toggle)
filter 2.6.3%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 1,024 kB
  • ctags: 896
  • sloc: ansic: 4,023; sh: 3,833; makefile: 158
file content (73 lines) | stat: -rw-r--r-- 1,790 bytes parent folder | download | duplicates (2)
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
71
72
73
Description: Changes to Configure as of filter/2.6.3-1

--- filter-2.6.3.orig/Configure
+++ filter-2.6.3/Configure
@@ -21,9 +21,15 @@
 PATH=".:/bin:/usr/bin:/usr/local/bin:/usr/ucb:/usr/local:/usr/lbin:/etc:/usr/new:/usr/new/bin:/usr/nbin:$PATH"
 export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myself to sh."; sh $0; kill $$)
 
-if test ! -t 0; then
+case "$1" in
+-d) shift; fastread='yes';;
+esac
+
+if test -z "$fastread" ; then
+  if test ! -t 0; then
     echo "Say 'sh Configure', not 'sh <Configure'"
     exit 1
+  fi
 fi
 
 (alias) >/dev/null 2>&1 && \
@@ -37,10 +43,6 @@
     cd UU
 fi
 
-case "$1" in
--d) shift; fastread='yes';;
-esac
-
 bin=''
 contains=''
 cppstdin=''
@@ -395,10 +397,12 @@
     n=''
     c='\c'
 fi
-echo $n "Type carriage return to continue.  Your cursor should be here-->$c"
-read ans
 rm -f .echotmp
 
+#We want things fully automated
+#echo $n "Type carriage return to continue.  Your cursor should be here-->$c"
+#read ans
+
 : now set up to do reads with possible shell escape and default assignment
 cat <<EOSC >myread
 case "\$fastread" in
@@ -3704,15 +3708,16 @@
 echo " "
 dflt=''
 fastread=''
-echo "If you didn't make any mistakes, then just type a carriage return here."
-rp="If you need to edit config.sh, do it as a shell escape here:"
-$echo $n "$rp $c"
-. UU/myread
-case "$ans" in
-'') ;;
-*) : in case they cannot read
-    eval $ans;;
-esac
+#We want things fully automated
+#echo "If you didn't make any mistakes, then just type a carriage return here."
+#rp="If you need to edit config.sh, do it as a shell escape here:"
+#$echo $n "$rp $c"
+#. UU/myread
+#case "$ans" in
+#'') ;;
+#*) : in case they cannot read
+#    eval $ans;;
+#esac
 : if this fails, just run all the .SH files by hand
 . ./config.sh