xref: /freebsd-14.2/crypto/heimdal/missing (revision c19800e8)
1b528cefcSMark Murray#! /bin/sh
25e9cd1aeSAssar Westerlund# Common stub for a few missing GNU programs while installing.
38d4ba808SJacques Vidrine
4*c19800e8SDoug Rabsonscriptversion=2009-04-28.21; # UTC
58d4ba808SJacques Vidrine
6*c19800e8SDoug Rabson# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
78d4ba808SJacques Vidrine# 2008, 2009 Free Software Foundation, Inc.
85e9cd1aeSAssar Westerlund# Originally by Fran,cois Pinard <[email protected]>, 1996.
95e9cd1aeSAssar Westerlund
105e9cd1aeSAssar Westerlund# This program is free software; you can redistribute it and/or modify
115e9cd1aeSAssar Westerlund# it under the terms of the GNU General Public License as published by
125e9cd1aeSAssar Westerlund# the Free Software Foundation; either version 2, or (at your option)
135e9cd1aeSAssar Westerlund# any later version.
145e9cd1aeSAssar Westerlund
155e9cd1aeSAssar Westerlund# This program is distributed in the hope that it will be useful,
165e9cd1aeSAssar Westerlund# but WITHOUT ANY WARRANTY; without even the implied warranty of
175e9cd1aeSAssar Westerlund# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
185e9cd1aeSAssar Westerlund# GNU General Public License for more details.
195e9cd1aeSAssar Westerlund
205e9cd1aeSAssar Westerlund# You should have received a copy of the GNU General Public License
215e9cd1aeSAssar Westerlund# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22*c19800e8SDoug Rabson
23*c19800e8SDoug Rabson# As a special exception to the GNU General Public License, if you
245e9cd1aeSAssar Westerlund# distribute this file as part of a program that contains a
258373020dSJacques Vidrine# configuration script generated by Autoconf, you may include it under
268373020dSJacques Vidrine# the same distribution terms that you use for the rest of that program.
278373020dSJacques Vidrine
288373020dSJacques Vidrineif test $# -eq 0; then
298373020dSJacques Vidrine  echo 1>&2 "Try \`$0 --help' for more information"
305e9cd1aeSAssar Westerlund  exit 1
315e9cd1aeSAssar Westerlundfi
325e9cd1aeSAssar Westerlund
335e9cd1aeSAssar Westerlundrun=:
345e9cd1aeSAssar Westerlundsed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
355e9cd1aeSAssar Westerlundsed_minuso='s/.* -o \([^ ]*\).*/\1/p'
36*c19800e8SDoug Rabson
37*c19800e8SDoug Rabson# In the cases where this matters, `missing' is being run in the
385e9cd1aeSAssar Westerlund# srcdir already.
398373020dSJacques Vidrineif test -f configure.ac; then
408373020dSJacques Vidrine  configure_ac=configure.ac
418373020dSJacques Vidrineelse
428373020dSJacques Vidrine  configure_ac=configure.in
438373020dSJacques Vidrinefi
448373020dSJacques Vidrine
458373020dSJacques Vidrinemsg="missing on your system"
468373020dSJacques Vidrine
478d4ba808SJacques Vidrinecase $1 in
488d4ba808SJacques Vidrine--run)
49*c19800e8SDoug Rabson  # Try to run requested program, and just exit if it succeeds.
505e9cd1aeSAssar Westerlund  run=
515e9cd1aeSAssar Westerlund  shift
525e9cd1aeSAssar Westerlund  "$@" && exit 0
535e9cd1aeSAssar Westerlund  # Exit code 63 means version mismatch.  This often happens
545e9cd1aeSAssar Westerlund  # when the user try to use an ancient version of a tool on
558d4ba808SJacques Vidrine  # a file that requires a minimum version.  In this case we
568d4ba808SJacques Vidrine  # we should proceed has if the program had been absent, or
578d4ba808SJacques Vidrine  # if --run hadn't been passed.
588d4ba808SJacques Vidrine  if test $? = 63; then
598d4ba808SJacques Vidrine    run=:
608d4ba808SJacques Vidrine    msg="probably too old"
618d4ba808SJacques Vidrine  fi
628d4ba808SJacques Vidrine  ;;
638d4ba808SJacques Vidrine
645e9cd1aeSAssar Westerlund  -h|--h|--he|--hel|--help)
655e9cd1aeSAssar Westerlund    echo "\
665e9cd1aeSAssar Westerlund$0 [OPTION]... PROGRAM [ARGUMENT]...
675e9cd1aeSAssar Westerlund
685e9cd1aeSAssar WesterlundHandle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
695e9cd1aeSAssar Westerlunderror status if there is no known handling for PROGRAM.
705e9cd1aeSAssar Westerlund
715e9cd1aeSAssar WesterlundOptions:
725e9cd1aeSAssar Westerlund  -h, --help      display this help and exit
735e9cd1aeSAssar Westerlund  -v, --version   output version information and exit
745e9cd1aeSAssar Westerlund  --run           try to run the given command, and emulate it if it fails
755e9cd1aeSAssar Westerlund
765e9cd1aeSAssar WesterlundSupported PROGRAM values:
775e9cd1aeSAssar Westerlund  aclocal      touch file \`aclocal.m4'
785e9cd1aeSAssar Westerlund  autoconf     touch file \`configure'
795e9cd1aeSAssar Westerlund  autoheader   touch file \`config.h.in'
805e9cd1aeSAssar Westerlund  autom4te     touch the output file, or create a stub one
815e9cd1aeSAssar Westerlund  automake     touch all \`Makefile.in' files
82*c19800e8SDoug Rabson  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
835e9cd1aeSAssar Westerlund  flex         create \`lex.yy.c', if possible, from existing .c
845e9cd1aeSAssar Westerlund  help2man     touch the output file
855e9cd1aeSAssar Westerlund  lex          create \`lex.yy.c', if possible, from existing .c
865e9cd1aeSAssar Westerlund  makeinfo     touch the output file
875e9cd1aeSAssar Westerlund  tar          try tar, gnutar, gtar, then tar without non-portable flags
885e9cd1aeSAssar Westerlund  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
895e9cd1aeSAssar Westerlund
908d4ba808SJacques VidrineVersion suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
918d4ba808SJacques Vidrine\`g' are ignored when checking the name.
928d4ba808SJacques Vidrine
93*c19800e8SDoug RabsonSend bug reports to <[email protected]>."
945e9cd1aeSAssar Westerlund    exit $?
955e9cd1aeSAssar Westerlund    ;;
965e9cd1aeSAssar Westerlund
978d4ba808SJacques Vidrine  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
98*c19800e8SDoug Rabson    echo "missing $scriptversion (GNU Automake)"
995e9cd1aeSAssar Westerlund    exit $?
1005e9cd1aeSAssar Westerlund    ;;
1015e9cd1aeSAssar Westerlund
1025e9cd1aeSAssar Westerlund  -*)
1035e9cd1aeSAssar Westerlund    echo 1>&2 "$0: Unknown \`$1' option"
1045e9cd1aeSAssar Westerlund    echo 1>&2 "Try \`$0 --help' for more information"
1055e9cd1aeSAssar Westerlund    exit 1
1065e9cd1aeSAssar Westerlund    ;;
107*c19800e8SDoug Rabson
108*c19800e8SDoug Rabsonesac
109*c19800e8SDoug Rabson
110*c19800e8SDoug Rabson# normalize program name to check for.
111*c19800e8SDoug Rabsonprogram=`echo "$1" | sed '
112*c19800e8SDoug Rabson  s/^gnu-//; t
113*c19800e8SDoug Rabson  s/^gnu//; t
114*c19800e8SDoug Rabson  s/^g//; t'`
115*c19800e8SDoug Rabson
116*c19800e8SDoug Rabson# Now exit if we have it, but it failed.  Also exit now if we
117*c19800e8SDoug Rabson# don't have it and --version was passed (most likely to detect
118*c19800e8SDoug Rabson# the program).  This is about non-GNU programs, so use $1 not
119*c19800e8SDoug Rabson# $program.
120*c19800e8SDoug Rabsoncase $1 in
121*c19800e8SDoug Rabson  lex*|yacc*)
122*c19800e8SDoug Rabson    # Not GNU programs, they don't have --version.
123*c19800e8SDoug Rabson    ;;
124*c19800e8SDoug Rabson
125*c19800e8SDoug Rabson  tar*)
126*c19800e8SDoug Rabson    if test -n "$run"; then
1278373020dSJacques Vidrine       echo 1>&2 "ERROR: \`tar' requires --run"
1288373020dSJacques Vidrine       exit 1
1298373020dSJacques Vidrine    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
130*c19800e8SDoug Rabson       exit 1
131*c19800e8SDoug Rabson    fi
132*c19800e8SDoug Rabson    ;;
133*c19800e8SDoug Rabson
134*c19800e8SDoug Rabson  *)
1358373020dSJacques Vidrine    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
136*c19800e8SDoug Rabson       # We have it, but it failed.
137*c19800e8SDoug Rabson       exit 1
1388373020dSJacques Vidrine    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
139*c19800e8SDoug Rabson       # Could not run --version or --help.  This is probably someone
140*c19800e8SDoug Rabson       # running `$TOOL --version' or `$TOOL --help' to check whether
141*c19800e8SDoug Rabson       # $TOOL exists and not knowing $TOOL uses missing.
142*c19800e8SDoug Rabson       exit 1
1435e9cd1aeSAssar Westerlund    fi
1448d4ba808SJacques Vidrine    ;;
1458373020dSJacques Vidrineesac
1465e9cd1aeSAssar Westerlund
1475e9cd1aeSAssar Westerlund# If it does not exist, or fails to run (possibly an outdated version),
1485e9cd1aeSAssar Westerlund# try to emulate it.
1495e9cd1aeSAssar Westerlundcase $program in
1505e9cd1aeSAssar Westerlund  aclocal*)
1515e9cd1aeSAssar Westerlund    echo 1>&2 "\
1525e9cd1aeSAssar WesterlundWARNING: \`$1' is $msg.  You should only need it if
1538d4ba808SJacques Vidrine         you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
1548373020dSJacques Vidrine         to install the \`Automake' and \`Perl' packages.  Grab them from
1555e9cd1aeSAssar Westerlund         any GNU archive site."
1565e9cd1aeSAssar Westerlund    touch aclocal.m4
1575e9cd1aeSAssar Westerlund    ;;
1585e9cd1aeSAssar Westerlund
1595e9cd1aeSAssar Westerlund  autoconf*)
1605e9cd1aeSAssar Westerlund    echo 1>&2 "\
1615e9cd1aeSAssar WesterlundWARNING: \`$1' is $msg.  You should only need it if
1628d4ba808SJacques Vidrine         you modified \`${configure_ac}'.  You might want to install the
1638373020dSJacques Vidrine         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
1645e9cd1aeSAssar Westerlund         archive site."
1655e9cd1aeSAssar Westerlund    touch configure
1668373020dSJacques Vidrine    ;;
1675e9cd1aeSAssar Westerlund
1685e9cd1aeSAssar Westerlund  autoheader*)
1695e9cd1aeSAssar Westerlund    echo 1>&2 "\
170*c19800e8SDoug RabsonWARNING: \`$1' is $msg.  You should only need it if
1715e9cd1aeSAssar Westerlund         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
1725e9cd1aeSAssar Westerlund         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
1735e9cd1aeSAssar Westerlund         from any GNU archive site."
1745e9cd1aeSAssar Westerlund    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
1755e9cd1aeSAssar Westerlund    test -z "$files" && files="config.h"
1765e9cd1aeSAssar Westerlund    touch_files=
1775e9cd1aeSAssar Westerlund    for f in $files; do
1785e9cd1aeSAssar Westerlund      case $f in
1798373020dSJacques Vidrine      *:*) touch_files="$touch_files "`echo "$f" |
1805e9cd1aeSAssar Westerlund				       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
1818d4ba808SJacques Vidrine      *) touch_files="$touch_files $f.in";;
1828373020dSJacques Vidrine      esac
1835e9cd1aeSAssar Westerlund    done
1845e9cd1aeSAssar Westerlund    touch $touch_files
1855e9cd1aeSAssar Westerlund    ;;
1865e9cd1aeSAssar Westerlund
1875e9cd1aeSAssar Westerlund  automake*)
1885e9cd1aeSAssar Westerlund    echo 1>&2 "\
1895e9cd1aeSAssar WesterlundWARNING: \`$1' is $msg.  You should only need it if
1908373020dSJacques Vidrine         you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
1918373020dSJacques Vidrine         You might want to install the \`Automake' and \`Perl' packages.
1928d4ba808SJacques Vidrine         Grab them from any GNU archive site."
1938d4ba808SJacques Vidrine    find . -type f -name Makefile.am -print |
1948373020dSJacques Vidrine	   sed 's/\.am$/.in/' |
1951c43270aSJacques Vidrine	   while read f; do touch "$f"; done
1968373020dSJacques Vidrine    ;;
1978373020dSJacques Vidrine
198*c19800e8SDoug Rabson  autom4te*)
199*c19800e8SDoug Rabson    echo 1>&2 "\
2008373020dSJacques VidrineWARNING: \`$1' is needed, but is $msg.
2018373020dSJacques Vidrine         You might have modified some files without having the
2028373020dSJacques Vidrine         proper tools for further handling them.
2038373020dSJacques Vidrine         You can get \`$1' as part of \`Autoconf' from any GNU
2048373020dSJacques Vidrine         archive site."
2058373020dSJacques Vidrine
2068373020dSJacques Vidrine    file=`echo "$*" | sed -n "$sed_output"`
2078373020dSJacques Vidrine    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
2088373020dSJacques Vidrine    if test -f "$file"; then
2098373020dSJacques Vidrine	touch $file
2108373020dSJacques Vidrine    else
2118373020dSJacques Vidrine	test -z "$file" || exec >$file
2128373020dSJacques Vidrine	echo "#! /bin/sh"
2135e9cd1aeSAssar Westerlund	echo "# Created by GNU Automake missing as a replacement of"
2145e9cd1aeSAssar Westerlund	echo "#  $ $@"
2158d4ba808SJacques Vidrine	echo "exit 0"
2165e9cd1aeSAssar Westerlund	chmod +x $file
2175e9cd1aeSAssar Westerlund	exit 1
2185e9cd1aeSAssar Westerlund    fi
2195e9cd1aeSAssar Westerlund    ;;
220*c19800e8SDoug Rabson
2215e9cd1aeSAssar Westerlund  bison*|yacc*)
222*c19800e8SDoug Rabson    echo 1>&2 "\
2235e9cd1aeSAssar WesterlundWARNING: \`$1' $msg.  You should only need it if
2245e9cd1aeSAssar Westerlund         you modified a \`.y' file.  You may need the \`Bison' package
225*c19800e8SDoug Rabson         in order for those modifications to take effect.  You can get
2265e9cd1aeSAssar Westerlund         \`Bison' from any GNU archive site."
2275e9cd1aeSAssar Westerlund    rm -f y.tab.c y.tab.h
2285e9cd1aeSAssar Westerlund    if test $# -ne 1; then
229*c19800e8SDoug Rabson        eval LASTARG="\${$#}"
2305e9cd1aeSAssar Westerlund	case $LASTARG in
2315e9cd1aeSAssar Westerlund	*.y)
2325e9cd1aeSAssar Westerlund	    SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
2335e9cd1aeSAssar Westerlund	    if test -f "$SRCFILE"; then
2345e9cd1aeSAssar Westerlund	         cp "$SRCFILE" y.tab.c
235*c19800e8SDoug Rabson	    fi
2365e9cd1aeSAssar Westerlund	    SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
2375e9cd1aeSAssar Westerlund	    if test -f "$SRCFILE"; then
238*c19800e8SDoug Rabson	         cp "$SRCFILE" y.tab.h
2395e9cd1aeSAssar Westerlund	    fi
2405e9cd1aeSAssar Westerlund	  ;;
2415e9cd1aeSAssar Westerlund	esac
2425e9cd1aeSAssar Westerlund    fi
2435e9cd1aeSAssar Westerlund    if test ! -f y.tab.h; then
2445e9cd1aeSAssar Westerlund	echo >y.tab.h
2458d4ba808SJacques Vidrine    fi
2465e9cd1aeSAssar Westerlund    if test ! -f y.tab.c; then
2475e9cd1aeSAssar Westerlund	echo 'main() { return 0; }' >y.tab.c
2485e9cd1aeSAssar Westerlund    fi
2495e9cd1aeSAssar Westerlund    ;;
250*c19800e8SDoug Rabson
2515e9cd1aeSAssar Westerlund  lex*|flex*)
252*c19800e8SDoug Rabson    echo 1>&2 "\
2535e9cd1aeSAssar WesterlundWARNING: \`$1' is $msg.  You should only need it if
2545e9cd1aeSAssar Westerlund         you modified a \`.l' file.  You may need the \`Flex' package
255*c19800e8SDoug Rabson         in order for those modifications to take effect.  You can get
2565e9cd1aeSAssar Westerlund         \`Flex' from any GNU archive site."
2575e9cd1aeSAssar Westerlund    rm -f lex.yy.c
2585e9cd1aeSAssar Westerlund    if test $# -ne 1; then
2595e9cd1aeSAssar Westerlund        eval LASTARG="\${$#}"
2605e9cd1aeSAssar Westerlund	case $LASTARG in
261*c19800e8SDoug Rabson	*.l)
2625e9cd1aeSAssar Westerlund	    SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
2635e9cd1aeSAssar Westerlund	    if test -f "$SRCFILE"; then
2645e9cd1aeSAssar Westerlund	         cp "$SRCFILE" lex.yy.c
2655e9cd1aeSAssar Westerlund	    fi
2665e9cd1aeSAssar Westerlund	  ;;
2675e9cd1aeSAssar Westerlund	esac
2688d4ba808SJacques Vidrine    fi
2695e9cd1aeSAssar Westerlund    if test ! -f lex.yy.c; then
2705e9cd1aeSAssar Westerlund	echo 'main() { return 0; }' >lex.yy.c
2715e9cd1aeSAssar Westerlund    fi
2725e9cd1aeSAssar Westerlund    ;;
273*c19800e8SDoug Rabson
274*c19800e8SDoug Rabson  help2man*)
275*c19800e8SDoug Rabson    echo 1>&2 "\
2765e9cd1aeSAssar WesterlundWARNING: \`$1' is $msg.  You should only need it if
2775e9cd1aeSAssar Westerlund	 you modified a dependency of a manual page.  You may need the
2785e9cd1aeSAssar Westerlund	 \`Help2man' package in order for those modifications to take
2795e9cd1aeSAssar Westerlund	 effect.  You can get \`Help2man' from any GNU archive site."
2805e9cd1aeSAssar Westerlund
2815e9cd1aeSAssar Westerlund    file=`echo "$*" | sed -n "$sed_output"`
2825e9cd1aeSAssar Westerlund    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
2835e9cd1aeSAssar Westerlund    if test -f "$file"; then
2845e9cd1aeSAssar Westerlund	touch $file
2855e9cd1aeSAssar Westerlund    else
2868d4ba808SJacques Vidrine	test -z "$file" || exec >$file
2875e9cd1aeSAssar Westerlund	echo ".ab help2man is required to generate this page"
2885e9cd1aeSAssar Westerlund	exit $?
2895e9cd1aeSAssar Westerlund    fi
2905e9cd1aeSAssar Westerlund    ;;
2915e9cd1aeSAssar Westerlund
292*c19800e8SDoug Rabson  makeinfo*)
293*c19800e8SDoug Rabson    echo 1>&2 "\
294*c19800e8SDoug RabsonWARNING: \`$1' is $msg.  You should only need it if
2955e9cd1aeSAssar Westerlund         you modified a \`.texi' or \`.texinfo' file, or any other file
296*c19800e8SDoug Rabson         indirectly affecting the aspect of the manual.  The spurious
297*c19800e8SDoug Rabson         call might also be the consequence of using a buggy \`make' (AIX,
298*c19800e8SDoug Rabson         DU, IRIX).  You might want to install the \`Texinfo' package or
299*c19800e8SDoug Rabson         the \`GNU make' package.  Grab either from any GNU archive site."
300*c19800e8SDoug Rabson    # The file to touch is that specified with -o ...
301*c19800e8SDoug Rabson    file=`echo "$*" | sed -n "$sed_output"`
302*c19800e8SDoug Rabson    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
303*c19800e8SDoug Rabson    if test -z "$file"; then
304*c19800e8SDoug Rabson      # ... or it is the one specified with @setfilename ...
305*c19800e8SDoug Rabson      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
3065e9cd1aeSAssar Westerlund      file=`sed -n '
307*c19800e8SDoug Rabson	/^@setfilename/{
308*c19800e8SDoug Rabson	  s/.* \([^ ]*\) *$/\1/
309*c19800e8SDoug Rabson	  p
3105e9cd1aeSAssar Westerlund	  q
3115e9cd1aeSAssar Westerlund	}' $infile`
3125e9cd1aeSAssar Westerlund      # ... or it is derived from the source name (dir/f.texi becomes f.info)
3135e9cd1aeSAssar Westerlund      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
3145e9cd1aeSAssar Westerlund    fi
3155e9cd1aeSAssar Westerlund    # If the file does not exist, the user really needs makeinfo;
3165e9cd1aeSAssar Westerlund    # let's fail without touching anything.
3175e9cd1aeSAssar Westerlund    test -f $file || exit 1
3185e9cd1aeSAssar Westerlund    touch $file
3195e9cd1aeSAssar Westerlund    ;;
3201c43270aSJacques Vidrine
3215e9cd1aeSAssar Westerlund  tar*)
3225e9cd1aeSAssar Westerlund    shift
3231c43270aSJacques Vidrine
3245e9cd1aeSAssar Westerlund    # We have already tried tar in the generic part.
3255e9cd1aeSAssar Westerlund    # Look for gnutar/gtar before invocation to avoid ugly error
3265e9cd1aeSAssar Westerlund    # messages.
327*c19800e8SDoug Rabson    if (gnutar --version > /dev/null 2>&1); then
3285e9cd1aeSAssar Westerlund       gnutar "$@" && exit 0
3295e9cd1aeSAssar Westerlund    fi
3301c43270aSJacques Vidrine    if (gtar --version > /dev/null 2>&1); then
3315e9cd1aeSAssar Westerlund       gtar "$@" && exit 0
3325e9cd1aeSAssar Westerlund    fi
333*c19800e8SDoug Rabson    firstarg="$1"
3345e9cd1aeSAssar Westerlund    if shift; then
3355e9cd1aeSAssar Westerlund	case $firstarg in
3361c43270aSJacques Vidrine	*o*)
3375e9cd1aeSAssar Westerlund	    firstarg=`echo "$firstarg" | sed s/o//`
3385e9cd1aeSAssar Westerlund	    tar "$firstarg" "$@" && exit 0
3395e9cd1aeSAssar Westerlund	    ;;
3405e9cd1aeSAssar Westerlund	esac
3415e9cd1aeSAssar Westerlund	case $firstarg in
3425e9cd1aeSAssar Westerlund	*h*)
3435e9cd1aeSAssar Westerlund	    firstarg=`echo "$firstarg" | sed s/h//`
3445e9cd1aeSAssar Westerlund	    tar "$firstarg" "$@" && exit 0
3455e9cd1aeSAssar Westerlund	    ;;
3465e9cd1aeSAssar Westerlund	esac
3475e9cd1aeSAssar Westerlund    fi
3485e9cd1aeSAssar Westerlund
3495e9cd1aeSAssar Westerlund    echo 1>&2 "\
3508d4ba808SJacques VidrineWARNING: I can't seem to be able to run \`tar' with the given arguments.
3518d4ba808SJacques Vidrine         You may want to install GNU tar or Free paxutils, or check the
3525e9cd1aeSAssar Westerlund         command line arguments."
3531c43270aSJacques Vidrine    exit 1
3545e9cd1aeSAssar Westerlund    ;;
3555e9cd1aeSAssar Westerlund
3565e9cd1aeSAssar Westerlund  *)
3575e9cd1aeSAssar Westerlund    echo 1>&2 "\
3585e9cd1aeSAssar WesterlundWARNING: \`$1' is needed, and is $msg.
3595e9cd1aeSAssar Westerlund         You might have modified some files without having the
3605e9cd1aeSAssar Westerlund         proper tools for further handling them.  Check the \`README' file,
3618d4ba808SJacques Vidrine         it often tells you about the needed prerequisites for installing
3628d4ba808SJacques Vidrine         this package.  You may also peek at any GNU archive site, in case
3638d4ba808SJacques Vidrine         some other package would contain this missing \`$1' program."
3648d4ba808SJacques Vidrine    exit 1
3658d4ba808SJacques Vidrine    ;;
3668d4ba808SJacques Vidrineesac
3678d4ba808SJacques Vidrine
368exit 0
369
370# Local variables:
371# eval: (add-hook 'write-file-hooks 'time-stamp)
372# time-stamp-start: "scriptversion="
373# time-stamp-format: "%:y-%02m-%02d.%02H"
374# time-stamp-time-zone: "UTC"
375# time-stamp-end: "; # UTC"
376# End:
377