]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* lib/missing (sed_minuso, sed_output): New variables.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 10 May 2006 20:37:36 +0000 (20:37 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 10 May 2006 20:37:36 +0000 (20:37 +0000)
(autom4te, help2man, makeinfo): Use them.  Unifies detection of
`-o FILE', `--output FILE', `--output=FILE', stricter regex.
Fixes `missing' to detect `--output' for help2man.  Fixes
PR automake/483.  Report by Dennis J. Linse.
(autom4te): Document in `missing --help'.
* THANKS: Update.

ChangeLog
THANKS
lib/missing

index 3f293a8964e05e43efc843ac54f412fe91f4f951..5900fc6f9d98368f330f46e207acc5ec6fcb5e9e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-05-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * lib/missing (sed_minuso, sed_output): New variables.
+       (autom4te, help2man, makeinfo): Use them.  Unifies detection of
+       `-o FILE', `--output FILE', `--output=FILE', stricter regex.
+       Fixes `missing' to detect `--output' for help2man.  Fixes
+       PR automake/483.  Report by Dennis J. Linse.
+       (autom4te): Document in `missing --help'.
+       * THANKS: Update.
+
 2006-04-26  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
 
        * doc/automake.texi (Dependency Tracking Evolution): Fix typo.
diff --git a/THANKS b/THANKS
index e6a4f7743073276f282782aff40829d24611d650..5c2a8797efc99840e05c076ae66419465316470f 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -52,6 +52,7 @@ David A. Swierczek    swiercze@mr.med.ge.com
 David Pashley          david@davidpashley.com
 David Zaroski          cz253@cleveland.Freenet.Edu
 Dean Povey             dpovey@wedgetail.com
+Dennis J. Linse                Dennis.J.Linse@SAIC.com
 Derek R. Price         derek.price@openavenue.com
 Diab Jerius            djerius@cfa.harvard.edu
 Didier Cassirame       faded@free.fr
index c82c8b56d5dfffc086f8d793654df2619ffa1bef..fb4f10c4961fd3012e80fd22ad5d3d2c9d4adcaa 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # Common stub for a few missing GNU programs while installing.
 
-scriptversion=2006-01-12.21
+scriptversion=2006-05-10.22
 
 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
 #   Free Software Foundation, Inc.
@@ -33,6 +33,8 @@ if test $# -eq 0; then
 fi
 
 run=:
+sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
+sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
 
 # In the cases where this matters, `missing' is being run in the
 # srcdir already.
@@ -77,6 +79,7 @@ Supported PROGRAM values:
   aclocal      touch file \`aclocal.m4'
   autoconf     touch file \`configure'
   autoheader   touch file \`config.h.in'
+  autom4te     touch the output file, or create a stub one
   automake     touch all \`Makefile.in' files
   bison        create \`y.tab.[ch]', if possible, from existing .[ch]
   flex         create \`lex.yy.c', if possible, from existing .c
@@ -192,8 +195,8 @@ WARNING: \`$1' is needed, but is $msg.
          You can get \`$1' as part of \`Autoconf' from any GNU
          archive site."
 
-    file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
-    test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
+    file=`echo "$*" | sed -n "$sed_output"`
+    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
     if test -f "$file"; then
        touch $file
     else
@@ -267,11 +270,9 @@ WARNING: \`$1' is $msg.  You should only need it if
         \`Help2man' package in order for those modifications to take
         effect.  You can get \`Help2man' from any GNU archive site."
 
-    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
-    if test -z "$file"; then
-       file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
-    fi
-    if [ -f "$file" ]; then
+    file=`echo "$*" | sed -n "$sed_output"`
+    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+    if test -f "$file"; then
        touch $file
     else
        test -z "$file" || exec >$file
@@ -289,7 +290,8 @@ WARNING: \`$1' is $msg.  You should only need it if
          DU, IRIX).  You might want to install the \`Texinfo' package or
          the \`GNU make' package.  Grab either from any GNU archive site."
     # The file to touch is that specified with -o ...
-    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
+    file=`echo "$*" | sed -n "$sed_output"`
+    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
     if test -z "$file"; then
       # ... or it is the one specified with @setfilename ...
       infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`