1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Common stub for a few missing GNU programs while installing. |
2 | # Common stub for a few missing GNU programs while installing. |
3 | |
3 | |
4 | scriptversion=2004-09-07.08 |
4 | scriptversion=2005-06-08.21 |
5 | |
5 | |
6 | # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004 |
6 | # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 |
7 | # Free Software Foundation, Inc. |
7 | # Free Software Foundation, Inc. |
8 | # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. |
8 | # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. |
9 | |
9 | |
10 | # This program is free software; you can redistribute it and/or modify |
10 | # This program is free software; you can redistribute it and/or modify |
11 | # it under the terms of the GNU General Public License as published by |
11 | # it under the terms of the GNU General Public License as published by |
… | |
… | |
17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 | # GNU General Public License for more details. |
18 | # GNU General Public License for more details. |
19 | |
19 | |
20 | # You should have received a copy of the GNU General Public License |
20 | # You should have received a copy of the GNU General Public License |
21 | # along with this program; if not, write to the Free Software |
21 | # along with this program; if not, write to the Free Software |
22 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
22 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
23 | # 02111-1307, USA. |
23 | # 02110-1301, USA. |
24 | |
24 | |
25 | # As a special exception to the GNU General Public License, if you |
25 | # As a special exception to the GNU General Public License, if you |
26 | # distribute this file as part of a program that contains a |
26 | # distribute this file as part of a program that contains a |
27 | # configuration script generated by Autoconf, you may include it under |
27 | # configuration script generated by Autoconf, you may include it under |
28 | # the same distribution terms that you use for the rest of that program. |
28 | # the same distribution terms that you use for the rest of that program. |
… | |
… | |
85 | makeinfo touch the output file |
85 | makeinfo touch the output file |
86 | tar try tar, gnutar, gtar, then tar without non-portable flags |
86 | tar try tar, gnutar, gtar, then tar without non-portable flags |
87 | yacc create \`y.tab.[ch]', if possible, from existing .[ch] |
87 | yacc create \`y.tab.[ch]', if possible, from existing .[ch] |
88 | |
88 | |
89 | Send bug reports to <bug-automake@gnu.org>." |
89 | Send bug reports to <bug-automake@gnu.org>." |
90 | exit 0 |
90 | exit $? |
91 | ;; |
91 | ;; |
92 | |
92 | |
93 | -v|--v|--ve|--ver|--vers|--versi|--versio|--version) |
93 | -v|--v|--ve|--ver|--vers|--versi|--versio|--version) |
94 | echo "missing $scriptversion (GNU Automake)" |
94 | echo "missing $scriptversion (GNU Automake)" |
95 | exit 0 |
95 | exit $? |
96 | ;; |
96 | ;; |
97 | |
97 | |
98 | -*) |
98 | -*) |
99 | echo 1>&2 "$0: Unknown \`$1' option" |
99 | echo 1>&2 "$0: Unknown \`$1' option" |
100 | echo 1>&2 "Try \`$0 --help' for more information" |
100 | echo 1>&2 "Try \`$0 --help' for more information" |
… | |
… | |
286 | you modified a \`.texi' or \`.texinfo' file, or any other file |
286 | you modified a \`.texi' or \`.texinfo' file, or any other file |
287 | indirectly affecting the aspect of the manual. The spurious |
287 | indirectly affecting the aspect of the manual. The spurious |
288 | call might also be the consequence of using a buggy \`make' (AIX, |
288 | call might also be the consequence of using a buggy \`make' (AIX, |
289 | DU, IRIX). You might want to install the \`Texinfo' package or |
289 | DU, IRIX). You might want to install the \`Texinfo' package or |
290 | the \`GNU make' package. Grab either from any GNU archive site." |
290 | the \`GNU make' package. Grab either from any GNU archive site." |
|
|
291 | # The file to touch is that specified with -o ... |
291 | file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` |
292 | file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` |
292 | if test -z "$file"; then |
293 | if test -z "$file"; then |
|
|
294 | # ... or it is the one specified with @setfilename ... |
293 | file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` |
295 | infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` |
294 | file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` |
296 | file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` |
|
|
297 | # ... or it is derived from the source name (dir/f.texi becomes f.info) |
|
|
298 | test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info |
295 | fi |
299 | fi |
|
|
300 | # If the file does not exist, the user really needs makeinfo; |
|
|
301 | # let's fail without touching anything. |
|
|
302 | test -f $file || exit 1 |
296 | touch $file |
303 | touch $file |
297 | ;; |
304 | ;; |
298 | |
305 | |
299 | tar) |
306 | tar) |
300 | shift |
307 | shift |