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