missing
changeset 0 76be7dab668c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/missing	Thu Aug 10 06:05:39 2000 +0000
     1.3 @@ -0,0 +1,190 @@
     1.4 +#! /bin/sh
     1.5 +# Common stub for a few missing GNU programs while installing.
     1.6 +# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
     1.7 +# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
     1.8 +
     1.9 +# This program is free software; you can redistribute it and/or modify
    1.10 +# it under the terms of the GNU General Public License as published by
    1.11 +# the Free Software Foundation; either version 2, or (at your option)
    1.12 +# any later version.
    1.13 +
    1.14 +# This program is distributed in the hope that it will be useful,
    1.15 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.16 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.17 +# GNU General Public License for more details.
    1.18 +
    1.19 +# You should have received a copy of the GNU General Public License
    1.20 +# along with this program; if not, write to the Free Software
    1.21 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    1.22 +# 02111-1307, USA.
    1.23 +
    1.24 +if test $# -eq 0; then
    1.25 +  echo 1>&2 "Try \`$0 --help' for more information"
    1.26 +  exit 1
    1.27 +fi
    1.28 +
    1.29 +case "$1" in
    1.30 +
    1.31 +  -h|--h|--he|--hel|--help)
    1.32 +    echo "\
    1.33 +$0 [OPTION]... PROGRAM [ARGUMENT]...
    1.34 +
    1.35 +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
    1.36 +error status if there is no known handling for PROGRAM.
    1.37 +
    1.38 +Options:
    1.39 +  -h, --help      display this help and exit
    1.40 +  -v, --version   output version information and exit
    1.41 +
    1.42 +Supported PROGRAM values:
    1.43 +  aclocal      touch file \`aclocal.m4'
    1.44 +  autoconf     touch file \`configure'
    1.45 +  autoheader   touch file \`config.h.in'
    1.46 +  automake     touch all \`Makefile.in' files
    1.47 +  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
    1.48 +  flex         create \`lex.yy.c', if possible, from existing .c
    1.49 +  lex          create \`lex.yy.c', if possible, from existing .c
    1.50 +  makeinfo     touch the output file
    1.51 +  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]"
    1.52 +    ;;
    1.53 +
    1.54 +  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
    1.55 +    echo "missing - GNU libit 0.0"
    1.56 +    ;;
    1.57 +
    1.58 +  -*)
    1.59 +    echo 1>&2 "$0: Unknown \`$1' option"
    1.60 +    echo 1>&2 "Try \`$0 --help' for more information"
    1.61 +    exit 1
    1.62 +    ;;
    1.63 +
    1.64 +  aclocal)
    1.65 +    echo 1>&2 "\
    1.66 +WARNING: \`$1' is missing on your system.  You should only need it if
    1.67 +         you modified \`acinclude.m4' or \`configure.in'.  You might want
    1.68 +         to install the \`Automake' and \`Perl' packages.  Grab them from
    1.69 +         any GNU archive site."
    1.70 +    touch aclocal.m4
    1.71 +    ;;
    1.72 +
    1.73 +  autoconf)
    1.74 +    echo 1>&2 "\
    1.75 +WARNING: \`$1' is missing on your system.  You should only need it if
    1.76 +         you modified \`configure.in'.  You might want to install the
    1.77 +         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
    1.78 +         archive site."
    1.79 +    touch configure
    1.80 +    ;;
    1.81 +
    1.82 +  autoheader)
    1.83 +    echo 1>&2 "\
    1.84 +WARNING: \`$1' is missing on your system.  You should only need it if
    1.85 +         you modified \`acconfig.h' or \`configure.in'.  You might want
    1.86 +         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
    1.87 +         from any GNU archive site."
    1.88 +    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in`
    1.89 +    test -z "$files" && files="config.h"
    1.90 +    touch_files=
    1.91 +    for f in $files; do
    1.92 +      case "$f" in
    1.93 +      *:*) touch_files="$touch_files "`echo "$f" |
    1.94 +				       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
    1.95 +      *) touch_files="$touch_files $f.in";;
    1.96 +      esac
    1.97 +    done
    1.98 +    touch $touch_files
    1.99 +    ;;
   1.100 +
   1.101 +  automake)
   1.102 +    echo 1>&2 "\
   1.103 +WARNING: \`$1' is missing on your system.  You should only need it if
   1.104 +         you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
   1.105 +         You might want to install the \`Automake' and \`Perl' packages.
   1.106 +         Grab them from any GNU archive site."
   1.107 +    find . -type f -name Makefile.am -print |
   1.108 +	   sed 's/\.am$/.in/' |
   1.109 +	   while read f; do touch "$f"; done
   1.110 +    ;;
   1.111 +
   1.112 +  bison|yacc)
   1.113 +    echo 1>&2 "\
   1.114 +WARNING: \`$1' is missing on your system.  You should only need it if
   1.115 +         you modified a \`.y' file.  You may need the \`Bison' package
   1.116 +         in order for those modifications to take effect.  You can get
   1.117 +         \`Bison' from any GNU archive site."
   1.118 +    rm -f y.tab.c y.tab.h
   1.119 +    if [ $# -ne 1 ]; then
   1.120 +        eval LASTARG="\${$#}"
   1.121 +	case "$LASTARG" in
   1.122 +	*.y)
   1.123 +	    SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
   1.124 +	    if [ -f "$SRCFILE" ]; then
   1.125 +	         cp "$SRCFILE" y.tab.c
   1.126 +	    fi
   1.127 +	    SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
   1.128 +	    if [ -f "$SRCFILE" ]; then
   1.129 +	         cp "$SRCFILE" y.tab.h
   1.130 +	    fi
   1.131 +	  ;;
   1.132 +	esac
   1.133 +    fi
   1.134 +    if [ ! -f y.tab.h ]; then
   1.135 +	echo >y.tab.h
   1.136 +    fi
   1.137 +    if [ ! -f y.tab.c ]; then
   1.138 +	echo 'main() { return 0; }' >y.tab.c
   1.139 +    fi
   1.140 +    ;;
   1.141 +
   1.142 +  lex|flex)
   1.143 +    echo 1>&2 "\
   1.144 +WARNING: \`$1' is missing on your system.  You should only need it if
   1.145 +         you modified a \`.l' file.  You may need the \`Flex' package
   1.146 +         in order for those modifications to take effect.  You can get
   1.147 +         \`Flex' from any GNU archive site."
   1.148 +    rm -f lex.yy.c
   1.149 +    if [ $# -ne 1 ]; then
   1.150 +        eval LASTARG="\${$#}"
   1.151 +	case "$LASTARG" in
   1.152 +	*.l)
   1.153 +	    SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
   1.154 +	    if [ -f "$SRCFILE" ]; then
   1.155 +	         cp "$SRCFILE" lex.yy.c
   1.156 +	    fi
   1.157 +	  ;;
   1.158 +	esac
   1.159 +    fi
   1.160 +    if [ ! -f lex.yy.c ]; then
   1.161 +	echo 'main() { return 0; }' >lex.yy.c
   1.162 +    fi
   1.163 +    ;;
   1.164 +
   1.165 +  makeinfo)
   1.166 +    echo 1>&2 "\
   1.167 +WARNING: \`$1' is missing on your system.  You should only need it if
   1.168 +         you modified a \`.texi' or \`.texinfo' file, or any other file
   1.169 +         indirectly affecting the aspect of the manual.  The spurious
   1.170 +         call might also be the consequence of using a buggy \`make' (AIX,
   1.171 +         DU, IRIX).  You might want to install the \`Texinfo' package or
   1.172 +         the \`GNU make' package.  Grab either from any GNU archive site."
   1.173 +    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
   1.174 +    if test -z "$file"; then
   1.175 +      file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
   1.176 +      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
   1.177 +    fi
   1.178 +    touch $file
   1.179 +    ;;
   1.180 +
   1.181 +  *)
   1.182 +    echo 1>&2 "\
   1.183 +WARNING: \`$1' is needed, and you do not seem to have it handy on your
   1.184 +         system.  You might have modified some files without having the
   1.185 +         proper tools for further handling them.  Check the \`README' file,
   1.186 +         it often tells you about the needed prerequirements for installing
   1.187 +         this package.  You may also peek at any GNU archive site, in case
   1.188 +         some other package would contain this missing \`$1' program."
   1.189 +    exit 1
   1.190 +    ;;
   1.191 +esac
   1.192 +
   1.193 +exit 0