summaryrefslogtreecommitdiffstats
path: root/missing
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@cygnus.com>1998-10-08 23:28:38 +0000
committerJeff Law <law@gcc.gnu.org>1998-10-08 17:28:38 -0600
commit8af142753690529708d7da54d2a5a371ecd6d406 (patch)
treece9ce44c640c6a55163c8ae142547168ea63ba05 /missing
parentylwrap: Change absolute path checks to check for DOS style path names. (diff)
downloadgcc-8af142753690529708d7da54d2a5a371ecd6d406.tar.gz
gcc-8af142753690529708d7da54d2a5a371ecd6d406.tar.bz2
gcc-8af142753690529708d7da54d2a5a371ecd6d406.tar.xz
missing: Update to version from automake 1.3.
Wed Jun 10 11:19:47 1998 Ian Lance Taylor <ian@cygnus.com> * missing: Update to version from automake 1.3. Bring over from devo. From-SVN: r22946
Diffstat (limited to 'missing')
-rwxr-xr-xmissing62
1 files changed, 58 insertions, 4 deletions
diff --git a/missing b/missing
index a6abd069801..cbe2b0ef0e3 100755
--- a/missing
+++ b/missing
@@ -41,9 +41,11 @@ Supported PROGRAM values:
41 autoconf touch file \`configure' 41 autoconf touch file \`configure'
42 autoheader touch file \`config.h.in' 42 autoheader touch file \`config.h.in'
43 automake touch all \`Makefile.in' files 43 automake touch all \`Makefile.in' files
44 bison touch file \`y.tab.c' 44 bison create \`y.tab.[ch]', if possible, from existing .[ch]
45 flex create \`lex.yy.c', if possible, from existing .c
46 lex create \`lex.yy.c', if possible, from existing .c
45 makeinfo touch the output file 47 makeinfo touch the output file
46 yacc touch file \`y.tab.c'" 48 yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
47 ;; 49 ;;
48 50
49 -v|--v|--ve|--ver|--vers|--versi|--versio|--version) 51 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
@@ -80,7 +82,15 @@ WARNING: \`$1' is missing on your system. You should only need it if
80 you modified \`acconfig.h' or \`configure.in'. You might want 82 you modified \`acconfig.h' or \`configure.in'. You might want
81 to install the \`Autoconf' and \`GNU m4' packages. Grab them 83 to install the \`Autoconf' and \`GNU m4' packages. Grab them
82 from any GNU archive site." 84 from any GNU archive site."
83 touch config.h.in 85 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in`
86 if test -z "$files"; then
87 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in`
88 test -z "$files" || files="$files.in"
89 else
90 files=`echo "$files" | sed -e 's/:/ /g'`
91 fi
92 test -z "$files" && files="config.h.in"
93 touch $files
84 ;; 94 ;;
85 95
86 automake) 96 automake)
@@ -100,7 +110,51 @@ WARNING: \`$1' is missing on your system. You should only need it if
100 you modified a \`.y' file. You may need the \`Bison' package 110 you modified a \`.y' file. You may need the \`Bison' package
101 in order for those modifications to take effect. You can get 111 in order for those modifications to take effect. You can get
102 \`Bison' from any GNU archive site." 112 \`Bison' from any GNU archive site."
103 touch y.tab.c 113 rm -f y.tab.c y.tab.h
114 if [ $# -ne 1 ]; then
115 eval LASTARG="\${$#}"
116 case "$LASTARG" in
117 *.y)
118 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
119 if [ -f "$SRCFILE" ]; then
120 cp "$SRCFILE" y.tab.c
121 fi
122 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
123 if [ -f "$SRCFILE" ]; then
124 cp "$SRCFILE" y.tab.h
125 fi
126 ;;
127 esac
128 fi
129 if [ ! -f y.tab.h ]; then
130 echo >y.tab.h
131 fi
132 if [ ! -f y.tab.c ]; then
133 echo 'main() { return 0; }' >y.tab.c
134 fi
135 ;;
136
137 lex|flex)
138 echo 1>&2 "\
139WARNING: \`$1' is missing on your system. You should only need it if
140 you modified a \`.l' file. You may need the \`Flex' package
141 in order for those modifications to take effect. You can get
142 \`Flex' from any GNU archive site."
143 rm -f lex.yy.c
144 if [ $# -ne 1 ]; then
145 eval LASTARG="\${$#}"
146 case "$LASTARG" in
147 *.l)
148 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
149 if [ -f "$SRCFILE" ]; then
150 cp "$SRCFILE" lex.yy.c
151 fi
152 ;;
153 esac
154 fi
155 if [ ! -f lex.yy.c ]; then
156 echo 'main() { return 0; }' >lex.yy.c
157 fi
104 ;; 158 ;;
105 159
106 makeinfo) 160 makeinfo)