xref: /minix3/crypto/external/bsd/netpgp/dist/buildaux/missing (revision ebfedea0ce5bbe81e252ddf32d732e40fb633fae)
1*ebfedea0SLionel Sambuc#! /bin/sh
2*ebfedea0SLionel Sambuc# Common stub for a few missing GNU programs while installing.
3*ebfedea0SLionel Sambuc
4*ebfedea0SLionel Sambucscriptversion=2006-05-10.23
5*ebfedea0SLionel Sambuc
6*ebfedea0SLionel Sambuc# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
7*ebfedea0SLionel Sambuc#   Free Software Foundation, Inc.
8*ebfedea0SLionel Sambuc# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
9*ebfedea0SLionel Sambuc
10*ebfedea0SLionel Sambuc# This program is free software; you can redistribute it and/or modify
11*ebfedea0SLionel Sambuc# it under the terms of the GNU General Public License as published by
12*ebfedea0SLionel Sambuc# the Free Software Foundation; either version 2, or (at your option)
13*ebfedea0SLionel Sambuc# any later version.
14*ebfedea0SLionel Sambuc
15*ebfedea0SLionel Sambuc# This program is distributed in the hope that it will be useful,
16*ebfedea0SLionel Sambuc# but WITHOUT ANY WARRANTY; without even the implied warranty of
17*ebfedea0SLionel Sambuc# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*ebfedea0SLionel Sambuc# GNU General Public License for more details.
19*ebfedea0SLionel Sambuc
20*ebfedea0SLionel Sambuc# You should have received a copy of the GNU General Public License
21*ebfedea0SLionel Sambuc# along with this program; if not, write to the Free Software
22*ebfedea0SLionel Sambuc# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23*ebfedea0SLionel Sambuc# 02110-1301, USA.
24*ebfedea0SLionel Sambuc
25*ebfedea0SLionel Sambuc# As a special exception to the GNU General Public License, if you
26*ebfedea0SLionel Sambuc# distribute this file as part of a program that contains a
27*ebfedea0SLionel Sambuc# configuration script generated by Autoconf, you may include it under
28*ebfedea0SLionel Sambuc# the same distribution terms that you use for the rest of that program.
29*ebfedea0SLionel Sambuc
30*ebfedea0SLionel Sambucif test $# -eq 0; then
31*ebfedea0SLionel Sambuc  echo 1>&2 "Try \`$0 --help' for more information"
32*ebfedea0SLionel Sambuc  exit 1
33*ebfedea0SLionel Sambucfi
34*ebfedea0SLionel Sambuc
35*ebfedea0SLionel Sambucrun=:
36*ebfedea0SLionel Sambucsed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
37*ebfedea0SLionel Sambucsed_minuso='s/.* -o \([^ ]*\).*/\1/p'
38*ebfedea0SLionel Sambuc
39*ebfedea0SLionel Sambuc# In the cases where this matters, `missing' is being run in the
40*ebfedea0SLionel Sambuc# srcdir already.
41*ebfedea0SLionel Sambucif test -f configure.ac; then
42*ebfedea0SLionel Sambuc  configure_ac=configure.ac
43*ebfedea0SLionel Sambucelse
44*ebfedea0SLionel Sambuc  configure_ac=configure.in
45*ebfedea0SLionel Sambucfi
46*ebfedea0SLionel Sambuc
47*ebfedea0SLionel Sambucmsg="missing on your system"
48*ebfedea0SLionel Sambuc
49*ebfedea0SLionel Sambuccase $1 in
50*ebfedea0SLionel Sambuc--run)
51*ebfedea0SLionel Sambuc  # Try to run requested program, and just exit if it succeeds.
52*ebfedea0SLionel Sambuc  run=
53*ebfedea0SLionel Sambuc  shift
54*ebfedea0SLionel Sambuc  "$@" && exit 0
55*ebfedea0SLionel Sambuc  # Exit code 63 means version mismatch.  This often happens
56*ebfedea0SLionel Sambuc  # when the user try to use an ancient version of a tool on
57*ebfedea0SLionel Sambuc  # a file that requires a minimum version.  In this case we
58*ebfedea0SLionel Sambuc  # we should proceed has if the program had been absent, or
59*ebfedea0SLionel Sambuc  # if --run hadn't been passed.
60*ebfedea0SLionel Sambuc  if test $? = 63; then
61*ebfedea0SLionel Sambuc    run=:
62*ebfedea0SLionel Sambuc    msg="probably too old"
63*ebfedea0SLionel Sambuc  fi
64*ebfedea0SLionel Sambuc  ;;
65*ebfedea0SLionel Sambuc
66*ebfedea0SLionel Sambuc  -h|--h|--he|--hel|--help)
67*ebfedea0SLionel Sambuc    echo "\
68*ebfedea0SLionel Sambuc$0 [OPTION]... PROGRAM [ARGUMENT]...
69*ebfedea0SLionel Sambuc
70*ebfedea0SLionel SambucHandle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
71*ebfedea0SLionel Sambucerror status if there is no known handling for PROGRAM.
72*ebfedea0SLionel Sambuc
73*ebfedea0SLionel SambucOptions:
74*ebfedea0SLionel Sambuc  -h, --help      display this help and exit
75*ebfedea0SLionel Sambuc  -v, --version   output version information and exit
76*ebfedea0SLionel Sambuc  --run           try to run the given command, and emulate it if it fails
77*ebfedea0SLionel Sambuc
78*ebfedea0SLionel SambucSupported PROGRAM values:
79*ebfedea0SLionel Sambuc  aclocal      touch file \`aclocal.m4'
80*ebfedea0SLionel Sambuc  autoconf     touch file \`configure'
81*ebfedea0SLionel Sambuc  autoheader   touch file \`config.h.in'
82*ebfedea0SLionel Sambuc  autom4te     touch the output file, or create a stub one
83*ebfedea0SLionel Sambuc  automake     touch all \`Makefile.in' files
84*ebfedea0SLionel Sambuc  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
85*ebfedea0SLionel Sambuc  flex         create \`lex.yy.c', if possible, from existing .c
86*ebfedea0SLionel Sambuc  help2man     touch the output file
87*ebfedea0SLionel Sambuc  lex          create \`lex.yy.c', if possible, from existing .c
88*ebfedea0SLionel Sambuc  makeinfo     touch the output file
89*ebfedea0SLionel Sambuc  tar          try tar, gnutar, gtar, then tar without non-portable flags
90*ebfedea0SLionel Sambuc  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
91*ebfedea0SLionel Sambuc
92*ebfedea0SLionel SambucSend bug reports to <bug-automake@gnu.org>."
93*ebfedea0SLionel Sambuc    exit $?
94*ebfedea0SLionel Sambuc    ;;
95*ebfedea0SLionel Sambuc
96*ebfedea0SLionel Sambuc  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
97*ebfedea0SLionel Sambuc    echo "missing $scriptversion (GNU Automake)"
98*ebfedea0SLionel Sambuc    exit $?
99*ebfedea0SLionel Sambuc    ;;
100*ebfedea0SLionel Sambuc
101*ebfedea0SLionel Sambuc  -*)
102*ebfedea0SLionel Sambuc    echo 1>&2 "$0: Unknown \`$1' option"
103*ebfedea0SLionel Sambuc    echo 1>&2 "Try \`$0 --help' for more information"
104*ebfedea0SLionel Sambuc    exit 1
105*ebfedea0SLionel Sambuc    ;;
106*ebfedea0SLionel Sambuc
107*ebfedea0SLionel Sambucesac
108*ebfedea0SLionel Sambuc
109*ebfedea0SLionel Sambuc# Now exit if we have it, but it failed.  Also exit now if we
110*ebfedea0SLionel Sambuc# don't have it and --version was passed (most likely to detect
111*ebfedea0SLionel Sambuc# the program).
112*ebfedea0SLionel Sambuccase $1 in
113*ebfedea0SLionel Sambuc  lex|yacc)
114*ebfedea0SLionel Sambuc    # Not GNU programs, they don't have --version.
115*ebfedea0SLionel Sambuc    ;;
116*ebfedea0SLionel Sambuc
117*ebfedea0SLionel Sambuc  tar)
118*ebfedea0SLionel Sambuc    if test -n "$run"; then
119*ebfedea0SLionel Sambuc       echo 1>&2 "ERROR: \`tar' requires --run"
120*ebfedea0SLionel Sambuc       exit 1
121*ebfedea0SLionel Sambuc    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
122*ebfedea0SLionel Sambuc       exit 1
123*ebfedea0SLionel Sambuc    fi
124*ebfedea0SLionel Sambuc    ;;
125*ebfedea0SLionel Sambuc
126*ebfedea0SLionel Sambuc  *)
127*ebfedea0SLionel Sambuc    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
128*ebfedea0SLionel Sambuc       # We have it, but it failed.
129*ebfedea0SLionel Sambuc       exit 1
130*ebfedea0SLionel Sambuc    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
131*ebfedea0SLionel Sambuc       # Could not run --version or --help.  This is probably someone
132*ebfedea0SLionel Sambuc       # running `$TOOL --version' or `$TOOL --help' to check whether
133*ebfedea0SLionel Sambuc       # $TOOL exists and not knowing $TOOL uses missing.
134*ebfedea0SLionel Sambuc       exit 1
135*ebfedea0SLionel Sambuc    fi
136*ebfedea0SLionel Sambuc    ;;
137*ebfedea0SLionel Sambucesac
138*ebfedea0SLionel Sambuc
139*ebfedea0SLionel Sambuc# If it does not exist, or fails to run (possibly an outdated version),
140*ebfedea0SLionel Sambuc# try to emulate it.
141*ebfedea0SLionel Sambuccase $1 in
142*ebfedea0SLionel Sambuc  aclocal*)
143*ebfedea0SLionel Sambuc    echo 1>&2 "\
144*ebfedea0SLionel SambucWARNING: \`$1' is $msg.  You should only need it if
145*ebfedea0SLionel Sambuc         you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
146*ebfedea0SLionel Sambuc         to install the \`Automake' and \`Perl' packages.  Grab them from
147*ebfedea0SLionel Sambuc         any GNU archive site."
148*ebfedea0SLionel Sambuc    touch aclocal.m4
149*ebfedea0SLionel Sambuc    ;;
150*ebfedea0SLionel Sambuc
151*ebfedea0SLionel Sambuc  autoconf)
152*ebfedea0SLionel Sambuc    echo 1>&2 "\
153*ebfedea0SLionel SambucWARNING: \`$1' is $msg.  You should only need it if
154*ebfedea0SLionel Sambuc         you modified \`${configure_ac}'.  You might want to install the
155*ebfedea0SLionel Sambuc         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
156*ebfedea0SLionel Sambuc         archive site."
157*ebfedea0SLionel Sambuc    touch configure
158*ebfedea0SLionel Sambuc    ;;
159*ebfedea0SLionel Sambuc
160*ebfedea0SLionel Sambuc  autoheader)
161*ebfedea0SLionel Sambuc    echo 1>&2 "\
162*ebfedea0SLionel SambucWARNING: \`$1' is $msg.  You should only need it if
163*ebfedea0SLionel Sambuc         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
164*ebfedea0SLionel Sambuc         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
165*ebfedea0SLionel Sambuc         from any GNU archive site."
166*ebfedea0SLionel Sambuc    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
167*ebfedea0SLionel Sambuc    test -z "$files" && files="config.h"
168*ebfedea0SLionel Sambuc    touch_files=
169*ebfedea0SLionel Sambuc    for f in $files; do
170*ebfedea0SLionel Sambuc      case $f in
171*ebfedea0SLionel Sambuc      *:*) touch_files="$touch_files "`echo "$f" |
172*ebfedea0SLionel Sambuc				       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
173*ebfedea0SLionel Sambuc      *) touch_files="$touch_files $f.in";;
174*ebfedea0SLionel Sambuc      esac
175*ebfedea0SLionel Sambuc    done
176*ebfedea0SLionel Sambuc    touch $touch_files
177*ebfedea0SLionel Sambuc    ;;
178*ebfedea0SLionel Sambuc
179*ebfedea0SLionel Sambuc  automake*)
180*ebfedea0SLionel Sambuc    echo 1>&2 "\
181*ebfedea0SLionel SambucWARNING: \`$1' is $msg.  You should only need it if
182*ebfedea0SLionel Sambuc         you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
183*ebfedea0SLionel Sambuc         You might want to install the \`Automake' and \`Perl' packages.
184*ebfedea0SLionel Sambuc         Grab them from any GNU archive site."
185*ebfedea0SLionel Sambuc    find . -type f -name Makefile.am -print |
186*ebfedea0SLionel Sambuc	   sed 's/\.am$/.in/' |
187*ebfedea0SLionel Sambuc	   while read f; do touch "$f"; done
188*ebfedea0SLionel Sambuc    ;;
189*ebfedea0SLionel Sambuc
190*ebfedea0SLionel Sambuc  autom4te)
191*ebfedea0SLionel Sambuc    echo 1>&2 "\
192*ebfedea0SLionel SambucWARNING: \`$1' is needed, but is $msg.
193*ebfedea0SLionel Sambuc         You might have modified some files without having the
194*ebfedea0SLionel Sambuc         proper tools for further handling them.
195*ebfedea0SLionel Sambuc         You can get \`$1' as part of \`Autoconf' from any GNU
196*ebfedea0SLionel Sambuc         archive site."
197*ebfedea0SLionel Sambuc
198*ebfedea0SLionel Sambuc    file=`echo "$*" | sed -n "$sed_output"`
199*ebfedea0SLionel Sambuc    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
200*ebfedea0SLionel Sambuc    if test -f "$file"; then
201*ebfedea0SLionel Sambuc	touch $file
202*ebfedea0SLionel Sambuc    else
203*ebfedea0SLionel Sambuc	test -z "$file" || exec >$file
204*ebfedea0SLionel Sambuc	echo "#! /bin/sh"
205*ebfedea0SLionel Sambuc	echo "# Created by GNU Automake missing as a replacement of"
206*ebfedea0SLionel Sambuc	echo "#  $ $@"
207*ebfedea0SLionel Sambuc	echo "exit 0"
208*ebfedea0SLionel Sambuc	chmod +x $file
209*ebfedea0SLionel Sambuc	exit 1
210*ebfedea0SLionel Sambuc    fi
211*ebfedea0SLionel Sambuc    ;;
212*ebfedea0SLionel Sambuc
213*ebfedea0SLionel Sambuc  bison|yacc)
214*ebfedea0SLionel Sambuc    echo 1>&2 "\
215*ebfedea0SLionel SambucWARNING: \`$1' $msg.  You should only need it if
216*ebfedea0SLionel Sambuc         you modified a \`.y' file.  You may need the \`Bison' package
217*ebfedea0SLionel Sambuc         in order for those modifications to take effect.  You can get
218*ebfedea0SLionel Sambuc         \`Bison' from any GNU archive site."
219*ebfedea0SLionel Sambuc    rm -f y.tab.c y.tab.h
220*ebfedea0SLionel Sambuc    if test $# -ne 1; then
221*ebfedea0SLionel Sambuc        eval LASTARG="\${$#}"
222*ebfedea0SLionel Sambuc	case $LASTARG in
223*ebfedea0SLionel Sambuc	*.y)
224*ebfedea0SLionel Sambuc	    SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
225*ebfedea0SLionel Sambuc	    if test -f "$SRCFILE"; then
226*ebfedea0SLionel Sambuc	         cp "$SRCFILE" y.tab.c
227*ebfedea0SLionel Sambuc	    fi
228*ebfedea0SLionel Sambuc	    SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
229*ebfedea0SLionel Sambuc	    if test -f "$SRCFILE"; then
230*ebfedea0SLionel Sambuc	         cp "$SRCFILE" y.tab.h
231*ebfedea0SLionel Sambuc	    fi
232*ebfedea0SLionel Sambuc	  ;;
233*ebfedea0SLionel Sambuc	esac
234*ebfedea0SLionel Sambuc    fi
235*ebfedea0SLionel Sambuc    if test ! -f y.tab.h; then
236*ebfedea0SLionel Sambuc	echo >y.tab.h
237*ebfedea0SLionel Sambuc    fi
238*ebfedea0SLionel Sambuc    if test ! -f y.tab.c; then
239*ebfedea0SLionel Sambuc	echo 'main() { return 0; }' >y.tab.c
240*ebfedea0SLionel Sambuc    fi
241*ebfedea0SLionel Sambuc    ;;
242*ebfedea0SLionel Sambuc
243*ebfedea0SLionel Sambuc  lex|flex)
244*ebfedea0SLionel Sambuc    echo 1>&2 "\
245*ebfedea0SLionel SambucWARNING: \`$1' is $msg.  You should only need it if
246*ebfedea0SLionel Sambuc         you modified a \`.l' file.  You may need the \`Flex' package
247*ebfedea0SLionel Sambuc         in order for those modifications to take effect.  You can get
248*ebfedea0SLionel Sambuc         \`Flex' from any GNU archive site."
249*ebfedea0SLionel Sambuc    rm -f lex.yy.c
250*ebfedea0SLionel Sambuc    if test $# -ne 1; then
251*ebfedea0SLionel Sambuc        eval LASTARG="\${$#}"
252*ebfedea0SLionel Sambuc	case $LASTARG in
253*ebfedea0SLionel Sambuc	*.l)
254*ebfedea0SLionel Sambuc	    SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
255*ebfedea0SLionel Sambuc	    if test -f "$SRCFILE"; then
256*ebfedea0SLionel Sambuc	         cp "$SRCFILE" lex.yy.c
257*ebfedea0SLionel Sambuc	    fi
258*ebfedea0SLionel Sambuc	  ;;
259*ebfedea0SLionel Sambuc	esac
260*ebfedea0SLionel Sambuc    fi
261*ebfedea0SLionel Sambuc    if test ! -f lex.yy.c; then
262*ebfedea0SLionel Sambuc	echo 'main() { return 0; }' >lex.yy.c
263*ebfedea0SLionel Sambuc    fi
264*ebfedea0SLionel Sambuc    ;;
265*ebfedea0SLionel Sambuc
266*ebfedea0SLionel Sambuc  help2man)
267*ebfedea0SLionel Sambuc    echo 1>&2 "\
268*ebfedea0SLionel SambucWARNING: \`$1' is $msg.  You should only need it if
269*ebfedea0SLionel Sambuc	 you modified a dependency of a manual page.  You may need the
270*ebfedea0SLionel Sambuc	 \`Help2man' package in order for those modifications to take
271*ebfedea0SLionel Sambuc	 effect.  You can get \`Help2man' from any GNU archive site."
272*ebfedea0SLionel Sambuc
273*ebfedea0SLionel Sambuc    file=`echo "$*" | sed -n "$sed_output"`
274*ebfedea0SLionel Sambuc    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
275*ebfedea0SLionel Sambuc    if test -f "$file"; then
276*ebfedea0SLionel Sambuc	touch $file
277*ebfedea0SLionel Sambuc    else
278*ebfedea0SLionel Sambuc	test -z "$file" || exec >$file
279*ebfedea0SLionel Sambuc	echo ".ab help2man is required to generate this page"
280*ebfedea0SLionel Sambuc	exit 1
281*ebfedea0SLionel Sambuc    fi
282*ebfedea0SLionel Sambuc    ;;
283*ebfedea0SLionel Sambuc
284*ebfedea0SLionel Sambuc  makeinfo)
285*ebfedea0SLionel Sambuc    echo 1>&2 "\
286*ebfedea0SLionel SambucWARNING: \`$1' is $msg.  You should only need it if
287*ebfedea0SLionel Sambuc         you modified a \`.texi' or \`.texinfo' file, or any other file
288*ebfedea0SLionel Sambuc         indirectly affecting the aspect of the manual.  The spurious
289*ebfedea0SLionel Sambuc         call might also be the consequence of using a buggy \`make' (AIX,
290*ebfedea0SLionel Sambuc         DU, IRIX).  You might want to install the \`Texinfo' package or
291*ebfedea0SLionel Sambuc         the \`GNU make' package.  Grab either from any GNU archive site."
292*ebfedea0SLionel Sambuc    # The file to touch is that specified with -o ...
293*ebfedea0SLionel Sambuc    file=`echo "$*" | sed -n "$sed_output"`
294*ebfedea0SLionel Sambuc    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
295*ebfedea0SLionel Sambuc    if test -z "$file"; then
296*ebfedea0SLionel Sambuc      # ... or it is the one specified with @setfilename ...
297*ebfedea0SLionel Sambuc      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
298*ebfedea0SLionel Sambuc      file=`sed -n '
299*ebfedea0SLionel Sambuc	/^@setfilename/{
300*ebfedea0SLionel Sambuc	  s/.* \([^ ]*\) *$/\1/
301*ebfedea0SLionel Sambuc	  p
302*ebfedea0SLionel Sambuc	  q
303*ebfedea0SLionel Sambuc	}' $infile`
304*ebfedea0SLionel Sambuc      # ... or it is derived from the source name (dir/f.texi becomes f.info)
305*ebfedea0SLionel Sambuc      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
306*ebfedea0SLionel Sambuc    fi
307*ebfedea0SLionel Sambuc    # If the file does not exist, the user really needs makeinfo;
308*ebfedea0SLionel Sambuc    # let's fail without touching anything.
309*ebfedea0SLionel Sambuc    test -f $file || exit 1
310*ebfedea0SLionel Sambuc    touch $file
311*ebfedea0SLionel Sambuc    ;;
312*ebfedea0SLionel Sambuc
313*ebfedea0SLionel Sambuc  tar)
314*ebfedea0SLionel Sambuc    shift
315*ebfedea0SLionel Sambuc
316*ebfedea0SLionel Sambuc    # We have already tried tar in the generic part.
317*ebfedea0SLionel Sambuc    # Look for gnutar/gtar before invocation to avoid ugly error
318*ebfedea0SLionel Sambuc    # messages.
319*ebfedea0SLionel Sambuc    if (gnutar --version > /dev/null 2>&1); then
320*ebfedea0SLionel Sambuc       gnutar "$@" && exit 0
321*ebfedea0SLionel Sambuc    fi
322*ebfedea0SLionel Sambuc    if (gtar --version > /dev/null 2>&1); then
323*ebfedea0SLionel Sambuc       gtar "$@" && exit 0
324*ebfedea0SLionel Sambuc    fi
325*ebfedea0SLionel Sambuc    firstarg="$1"
326*ebfedea0SLionel Sambuc    if shift; then
327*ebfedea0SLionel Sambuc	case $firstarg in
328*ebfedea0SLionel Sambuc	*o*)
329*ebfedea0SLionel Sambuc	    firstarg=`echo "$firstarg" | sed s/o//`
330*ebfedea0SLionel Sambuc	    tar "$firstarg" "$@" && exit 0
331*ebfedea0SLionel Sambuc	    ;;
332*ebfedea0SLionel Sambuc	esac
333*ebfedea0SLionel Sambuc	case $firstarg in
334*ebfedea0SLionel Sambuc	*h*)
335*ebfedea0SLionel Sambuc	    firstarg=`echo "$firstarg" | sed s/h//`
336*ebfedea0SLionel Sambuc	    tar "$firstarg" "$@" && exit 0
337*ebfedea0SLionel Sambuc	    ;;
338*ebfedea0SLionel Sambuc	esac
339*ebfedea0SLionel Sambuc    fi
340*ebfedea0SLionel Sambuc
341*ebfedea0SLionel Sambuc    echo 1>&2 "\
342*ebfedea0SLionel SambucWARNING: I can't seem to be able to run \`tar' with the given arguments.
343*ebfedea0SLionel Sambuc         You may want to install GNU tar or Free paxutils, or check the
344*ebfedea0SLionel Sambuc         command line arguments."
345*ebfedea0SLionel Sambuc    exit 1
346*ebfedea0SLionel Sambuc    ;;
347*ebfedea0SLionel Sambuc
348*ebfedea0SLionel Sambuc  *)
349*ebfedea0SLionel Sambuc    echo 1>&2 "\
350*ebfedea0SLionel SambucWARNING: \`$1' is needed, and is $msg.
351*ebfedea0SLionel Sambuc         You might have modified some files without having the
352*ebfedea0SLionel Sambuc         proper tools for further handling them.  Check the \`README' file,
353*ebfedea0SLionel Sambuc         it often tells you about the needed prerequisites for installing
354*ebfedea0SLionel Sambuc         this package.  You may also peek at any GNU archive site, in case
355*ebfedea0SLionel Sambuc         some other package would contain this missing \`$1' program."
356*ebfedea0SLionel Sambuc    exit 1
357*ebfedea0SLionel Sambuc    ;;
358*ebfedea0SLionel Sambucesac
359*ebfedea0SLionel Sambuc
360*ebfedea0SLionel Sambucexit 0
361*ebfedea0SLionel Sambuc
362*ebfedea0SLionel Sambuc# Local variables:
363*ebfedea0SLionel Sambuc# eval: (add-hook 'write-file-hooks 'time-stamp)
364*ebfedea0SLionel Sambuc# time-stamp-start: "scriptversion="
365*ebfedea0SLionel Sambuc# time-stamp-format: "%:y-%02m-%02d.%02H"
366*ebfedea0SLionel Sambuc# time-stamp-end: "$"
367*ebfedea0SLionel Sambuc# End:
368