missing revision 38889
138889Sjdp#! /bin/sh
238889Sjdp# Common stub for a few missing GNU programs while installing.
338889Sjdp# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
438889Sjdp# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
538889Sjdp
638889Sjdp# This program is free software; you can redistribute it and/or modify
738889Sjdp# it under the terms of the GNU General Public License as published by
838889Sjdp# the Free Software Foundation; either version 2, or (at your option)
938889Sjdp# any later version.
1038889Sjdp
1138889Sjdp# This program is distributed in the hope that it will be useful,
1238889Sjdp# but WITHOUT ANY WARRANTY; without even the implied warranty of
1338889Sjdp# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1438889Sjdp# GNU General Public License for more details.
1538889Sjdp
1638889Sjdp# You should have received a copy of the GNU General Public License
1738889Sjdp# along with this program; if not, write to the Free Software
1838889Sjdp# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1938889Sjdp# 02111-1307, USA.
2038889Sjdp
2138889Sjdpif test $# -eq 0; then
2238889Sjdp  echo 1>&2 "Try \`$0 --help' for more information"
2338889Sjdp  exit 1
2438889Sjdpfi
2538889Sjdp
2638889Sjdpcase "$1" in
2738889Sjdp
2838889Sjdp  -h|--h|--he|--hel|--help)
2938889Sjdp    echo "\
3038889Sjdp$0 [OPTION]... PROGRAM [ARGUMENT]...
3138889Sjdp
3238889SjdpHandle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
3338889Sjdperror status if there is no known handling for PROGRAM.
3438889Sjdp
3538889SjdpOptions:
3638889Sjdp  -h, --help      display this help and exit
3738889Sjdp  -v, --version   output version information and exit
3838889Sjdp
3938889SjdpSupported PROGRAM values:
4038889Sjdp  aclocal      touch file \`aclocal.m4'
4138889Sjdp  autoconf     touch file \`configure'
4238889Sjdp  autoheader   touch file \`config.h.in'
4338889Sjdp  automake     touch all \`Makefile.in' files
4438889Sjdp  bison        touch file \`y.tab.c'
4538889Sjdp  makeinfo     touch the output file
4638889Sjdp  yacc         touch file \`y.tab.c'"
4738889Sjdp    ;;
4838889Sjdp
4938889Sjdp  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
5038889Sjdp    echo "missing - GNU libit 0.0"
5138889Sjdp    ;;
5238889Sjdp
5338889Sjdp  -*)
5438889Sjdp    echo 1>&2 "$0: Unknown \`$1' option"
5538889Sjdp    echo 1>&2 "Try \`$0 --help' for more information"
5638889Sjdp    exit 1
5738889Sjdp    ;;
5838889Sjdp
5938889Sjdp  aclocal)
6038889Sjdp    echo 1>&2 "\
6138889SjdpWARNING: \`$1' is missing on your system.  You should only need it if
6238889Sjdp         you modified \`acinclude.m4' or \`configure.in'.  You might want
6338889Sjdp         to install the \`Automake' and \`Perl' packages.  Grab them from
6438889Sjdp         any GNU archive site."
6538889Sjdp    touch aclocal.m4
6638889Sjdp    ;;
6738889Sjdp
6838889Sjdp  autoconf)
6938889Sjdp    echo 1>&2 "\
7038889SjdpWARNING: \`$1' is missing on your system.  You should only need it if
7138889Sjdp         you modified \`configure.in'.  You might want to install the
7238889Sjdp         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
7338889Sjdp         archive site."
7438889Sjdp    touch configure
7538889Sjdp    ;;
7638889Sjdp
7738889Sjdp  autoheader)
7838889Sjdp    echo 1>&2 "\
7938889SjdpWARNING: \`$1' is missing on your system.  You should only need it if
8038889Sjdp         you modified \`acconfig.h' or \`configure.in'.  You might want
8138889Sjdp         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
8238889Sjdp         from any GNU archive site."
8338889Sjdp    touch config.h.in
8438889Sjdp    ;;
8538889Sjdp
8638889Sjdp  automake)
8738889Sjdp    echo 1>&2 "\
8838889SjdpWARNING: \`$1' is missing on your system.  You should only need it if
8938889Sjdp         you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
9038889Sjdp         You might want to install the \`Automake' and \`Perl' packages.
9138889Sjdp         Grab them from any GNU archive site."
9238889Sjdp    find . -type f -name Makefile.am -print \
9338889Sjdp      | sed 's/^\(.*\).am$/touch \1.in/' \
9438889Sjdp      | sh
9538889Sjdp    ;;
9638889Sjdp
9738889Sjdp  bison|yacc)
9838889Sjdp    echo 1>&2 "\
9938889SjdpWARNING: \`$1' is missing on your system.  You should only need it if
10038889Sjdp         you modified a \`.y' file.  You may need the \`Bison' package
10138889Sjdp         in order for those modifications to take effect.  You can get
10238889Sjdp         \`Bison' from any GNU archive site."
10338889Sjdp    touch y.tab.c
10438889Sjdp    ;;
10538889Sjdp
10638889Sjdp  makeinfo)
10738889Sjdp    echo 1>&2 "\
10838889SjdpWARNING: \`$1' is missing on your system.  You should only need it if
10938889Sjdp         you modified a \`.texi' or \`.texinfo' file, or any other file
11038889Sjdp         indirectly affecting the aspect of the manual.  The spurious
11138889Sjdp         call might also be the consequence of using a buggy \`make' (AIX,
11238889Sjdp         DU, IRIX).  You might want to install the \`Texinfo' package or
11338889Sjdp         the \`GNU make' package.  Grab either from any GNU archive site."
11438889Sjdp    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
11538889Sjdp    if test -z "$file"; then
11638889Sjdp      file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
11738889Sjdp      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
11838889Sjdp    fi
11938889Sjdp    touch $file
12038889Sjdp    ;;
12138889Sjdp
12238889Sjdp  *)
12338889Sjdp    echo 1>&2 "\
12438889SjdpWARNING: \`$1' is needed, and you do not seem to have it handy on your
12538889Sjdp         system.  You might have modified some files without having the
12638889Sjdp         proper tools for further handling them.  Check the \`README' file,
12738889Sjdp         it often tells you about the needed prerequirements for installing
12838889Sjdp         this package.  You may also peek at any GNU archive site, in case
12938889Sjdp         some other package would contain this missing \`$1' program."
13038889Sjdp    exit 1
13138889Sjdp    ;;
13238889Sjdpesac
13338889Sjdp
13438889Sjdpexit 0
135