2
2
# Common stub for a few missing GNU programs while installing.
4
scriptversion=2004-09-07.08
4
scriptversion=2009-04-28.21; # UTC
6
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004
7
# Free Software Foundation, Inc.
6
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
7
# 2008, 2009 Free Software Foundation, Inc.
8
8
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
10
10
# This program is free software; you can redistribute it and/or modify
18
18
# GNU General Public License for more details.
20
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
22
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21
# along with this program. If not, see <http://www.gnu.org/licenses/>.
25
23
# As a special exception to the GNU General Public License, if you
26
24
# distribute this file as part of a program that contains a
77
77
aclocal touch file \`aclocal.m4'
78
78
autoconf touch file \`configure'
79
79
autoheader touch file \`config.h.in'
80
autom4te touch the output file, or create a stub one
80
81
automake touch all \`Makefile.in' files
81
82
bison create \`y.tab.[ch]', if possible, from existing .[ch]
82
83
flex create \`lex.yy.c', if possible, from existing .c
86
87
tar try tar, gnutar, gtar, then tar without non-portable flags
87
88
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
90
Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
91
\`g' are ignored when checking the name.
89
93
Send bug reports to <bug-automake@gnu.org>."
93
97
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
94
98
echo "missing $scriptversion (GNU Automake)"
110
# normalize program name to check for.
111
program=`echo "$1" | sed '
106
116
# Now exit if we have it, but it failed. Also exit now if we
107
117
# don't have it and --version was passed (most likely to detect
118
# the program). This is about non-GNU programs, so use $1 not
111
122
# Not GNU programs, they don't have --version.
115
126
if test -n "$run"; then
116
127
echo 1>&2 "ERROR: \`tar' requires --run"
192
203
You can get \`$1' as part of \`Autoconf' from any GNU
195
file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
196
test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
206
file=`echo "$*" | sed -n "$sed_output"`
207
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
197
208
if test -f "$file"; then
212
223
WARNING: \`$1' $msg. You should only need it if
213
224
you modified a \`.y' file. You may need the \`Bison' package
214
225
in order for those modifications to take effect. You can get
215
226
\`Bison' from any GNU archive site."
216
227
rm -f y.tab.c y.tab.h
217
if [ $# -ne 1 ]; then
228
if test $# -ne 1; then
218
229
eval LASTARG="\${$#}"
221
232
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
222
if [ -f "$SRCFILE" ]; then
233
if test -f "$SRCFILE"; then
223
234
cp "$SRCFILE" y.tab.c
225
236
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
226
if [ -f "$SRCFILE" ]; then
237
if test -f "$SRCFILE"; then
227
238
cp "$SRCFILE" y.tab.h
232
if [ ! -f y.tab.h ]; then
243
if test ! -f y.tab.h; then
235
if [ ! -f y.tab.c ]; then
246
if test ! -f y.tab.c; then
236
247
echo 'main() { return 0; }' >y.tab.c
242
253
WARNING: \`$1' is $msg. You should only need it if
243
254
you modified a \`.l' file. You may need the \`Flex' package
244
255
in order for those modifications to take effect. You can get
245
256
\`Flex' from any GNU archive site."
247
if [ $# -ne 1 ]; then
258
if test $# -ne 1; then
248
259
eval LASTARG="\${$#}"
251
262
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
252
if [ -f "$SRCFILE" ]; then
263
if test -f "$SRCFILE"; then
253
264
cp "$SRCFILE" lex.yy.c
258
if [ ! -f lex.yy.c ]; then
269
if test ! -f lex.yy.c; then
259
270
echo 'main() { return 0; }' >lex.yy.c
265
276
WARNING: \`$1' is $msg. You should only need it if
266
277
you modified a dependency of a manual page. You may need the
267
278
\`Help2man' package in order for those modifications to take
268
279
effect. You can get \`Help2man' from any GNU archive site."
270
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
271
if test -z "$file"; then
272
file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
274
if [ -f "$file" ]; then
281
file=`echo "$*" | sed -n "$sed_output"`
282
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
283
if test -f "$file"; then
277
286
test -z "$file" || exec >$file
278
287
echo ".ab help2man is required to generate this page"
285
294
WARNING: \`$1' is $msg. You should only need it if
286
295
you modified a \`.texi' or \`.texinfo' file, or any other file
288
297
call might also be the consequence of using a buggy \`make' (AIX,
289
298
DU, IRIX). You might want to install the \`Texinfo' package or
290
299
the \`GNU make' package. Grab either from any GNU archive site."
291
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
300
# The file to touch is that specified with -o ...
301
file=`echo "$*" | sed -n "$sed_output"`
302
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
292
303
if test -z "$file"; then
293
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
294
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
304
# ... or it is the one specified with @setfilename ...
305
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
308
s/.* \([^ ]*\) *$/\1/
312
# ... or it is derived from the source name (dir/f.texi becomes f.info)
313
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
315
# If the file does not exist, the user really needs makeinfo;
316
# let's fail without touching anything.
317
test -f $file || exit 1
302
324
# We have already tried tar in the generic part.
349
371
# eval: (add-hook 'write-file-hooks 'time-stamp)
350
372
# time-stamp-start: "scriptversion="
351
373
# time-stamp-format: "%:y-%02m-%02d.%02H"
352
# time-stamp-end: "$"
374
# time-stamp-time-zone: "UTC"
375
# time-stamp-end: "; # UTC"