+2005-02-08 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * lib/missing (makeinfo): Compute the output file if neither -o
+ nor @setfilename is used.
+ Reported by Miroslaw Dobrzanski-Neumann and Bruno Haible.
+
2005-02-07 Alexandre Duret-Lutz <adl@gnu.org>
* doc/automake.texi (Requirements): Show one example of
Miloslav Trmac trmac@popelka.ms.mff.cuni.cz
Miodrag Vallat miodrag@ifrance.com
Mirko Streckenbach strecken@infosun.fmi.uni-passau.de
+Miroslaw Dobrzanski-Neumann mne@mosaic-ag.com
Morten Eriksen mortene@sim.no
Motoyuki Kasahara m-kasahr@sra.co.jp
Nathanael Nerode neroden@twcny.rr.com
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
-scriptversion=2005-02-02.21
+scriptversion=2005-02-08.22
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
# Free Software Foundation, Inc.
call might also be the consequence of using a buggy \`make' (AIX,
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'`
if test -z "$file"; then
- file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
- file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
+ # ... or it is the one specified with @setfilename ...
+ infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+ file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
+ # ... or it is derived from the source name (dir/f.texi becomes f.info)
+ test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
fi
touch $file
;;