summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2000-07-22 04:08:22 -0400
committerJason Merrill <jason@gcc.gnu.org>2000-07-22 04:08:22 -0400
commitd207ebef029642e5b93f7889b40ed5c47267f256 (patch)
tree352a946a9a021cf654cd9c81e8de516ff587ce85 /missing
parent6beb1915dd5f7c585dcb0b4b5a3a90d7d6d81567 (diff)
merge with /cvs/src
From-SVN: r35188
Diffstat (limited to 'missing')
-rwxr-xr-xmissing26
1 files changed, 14 insertions, 12 deletions
diff --git a/missing b/missing
index cbe2b0ef0e3..7789652e877 100755
--- a/missing
+++ b/missing
@@ -82,15 +82,17 @@ WARNING: \`$1' is missing on your system. You should only need it if
you modified \`acconfig.h' or \`configure.in'. You might want
to install the \`Autoconf' and \`GNU m4' packages. Grab them
from any GNU archive site."
- files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in`
- if test -z "$files"; then
- files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in`
- test -z "$files" || files="$files.in"
- else
- files=`echo "$files" | sed -e 's/:/ /g'`
- fi
- test -z "$files" && files="config.h.in"
- touch $files
+ files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in`
+ test -z "$files" && files="config.h"
+ touch_files=
+ for f in $files; do
+ case "$f" in
+ *:*) touch_files="$touch_files "`echo "$f" |
+ sed -e 's/^[^:]*://' -e 's/:.*//'`;;
+ *) touch_files="$touch_files $f.in";;
+ esac
+ done
+ touch $touch_files
;;
automake)
@@ -99,9 +101,9 @@ WARNING: \`$1' is missing on your system. You should only need it if
you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
You might want to install the \`Automake' and \`Perl' packages.
Grab them from any GNU archive site."
- find . -type f -name Makefile.am -print \
- | sed 's/^\(.*\).am$/touch \1.in/' \
- | sh
+ find . -type f -name Makefile.am -print |
+ sed 's/\.am$/.in/' |
+ while read f; do touch "$f"; done
;;
bison|yacc)