Back to home page

MITgcm

 
 

    


Warning, /tools/mpack-1.6/missing is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit ec6cf3b0 on 2003-08-26 20:45:25 UTC
ec6cf3b09d Ed H*0001 #! /bin/sh
                0002 # Common stub for a few missing GNU programs while installing.
                0003 # Copyright (C) 1996, 1997 Free Software Foundation, Inc.
                0004 # Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
                0005 
                0006 # This program is free software; you can redistribute it and/or modify
                0007 # it under the terms of the GNU General Public License as published by
                0008 # the Free Software Foundation; either version 2, or (at your option)
                0009 # any later version.
                0010 
                0011 # This program is distributed in the hope that it will be useful,
                0012 # but WITHOUT ANY WARRANTY; without even the implied warranty of
                0013 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                0014 # GNU General Public License for more details.
                0015 
                0016 # You should have received a copy of the GNU General Public License
                0017 # along with this program; if not, write to the Free Software
                0018 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                0019 # 02111-1307, USA.
                0020 
                0021 if test $# -eq 0; then
                0022   echo 1>&2 "Try \`$0 --help' for more information"
                0023   exit 1
                0024 fi
                0025 
                0026 case "$1" in
                0027 
                0028   -h|--h|--he|--hel|--help)
                0029     echo "\
                0030 $0 [OPTION]... PROGRAM [ARGUMENT]...
                0031 
                0032 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
                0033 error status if there is no known handling for PROGRAM.
                0034 
                0035 Options:
                0036   -h, --help      display this help and exit
                0037   -v, --version   output version information and exit
                0038 
                0039 Supported PROGRAM values:
                0040   aclocal      touch file \`aclocal.m4'
                0041   autoconf     touch file \`configure'
                0042   autoheader   touch file \`config.h.in'
                0043   automake     touch all \`Makefile.in' files
                0044   bison        create \`y.tab.[ch]', if possible, from existing .[ch]
                0045   flex         create \`lex.yy.c', if possible, from existing .c
                0046   lex          create \`lex.yy.c', if possible, from existing .c
                0047   makeinfo     touch the output file
                0048   yacc         create \`y.tab.[ch]', if possible, from existing .[ch]"
                0049     ;;
                0050 
                0051   -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
                0052     echo "missing - GNU libit 0.0"
                0053     ;;
                0054 
                0055   -*)
                0056     echo 1>&2 "$0: Unknown \`$1' option"
                0057     echo 1>&2 "Try \`$0 --help' for more information"
                0058     exit 1
                0059     ;;
                0060 
                0061   aclocal)
                0062     echo 1>&2 "\
                0063 WARNING: \`$1' is missing on your system.  You should only need it if
                0064          you modified \`acinclude.m4' or \`configure.in'.  You might want
                0065          to install the \`Automake' and \`Perl' packages.  Grab them from
                0066          any GNU archive site."
                0067     touch aclocal.m4
                0068     ;;
                0069 
                0070   autoconf)
                0071     echo 1>&2 "\
                0072 WARNING: \`$1' is missing on your system.  You should only need it if
                0073          you modified \`configure.in'.  You might want to install the
                0074          \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
                0075          archive site."
                0076     touch configure
                0077     ;;
                0078 
                0079   autoheader)
                0080     echo 1>&2 "\
                0081 WARNING: \`$1' is missing on your system.  You should only need it if
                0082          you modified \`acconfig.h' or \`configure.in'.  You might want
                0083          to install the \`Autoconf' and \`GNU m4' packages.  Grab them
                0084          from any GNU archive site."
                0085     files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in`
                0086     test -z "$files" && files="config.h"
                0087     touch_files=
                0088     for f in $files; do
                0089       case "$f" in
                0090       *:*) touch_files="$touch_files "`echo "$f" |
                0091                                        sed -e 's/^[^:]*://' -e 's/:.*//'`;;
                0092       *) touch_files="$touch_files $f.in";;
                0093       esac
                0094     done
                0095     touch $touch_files
                0096     ;;
                0097 
                0098   automake)
                0099     echo 1>&2 "\
                0100 WARNING: \`$1' is missing on your system.  You should only need it if
                0101          you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
                0102          You might want to install the \`Automake' and \`Perl' packages.
                0103          Grab them from any GNU archive site."
                0104     find . -type f -name Makefile.am -print |
                0105            sed 's/\.am$/.in/' |
                0106            while read f; do touch "$f"; done
                0107     ;;
                0108 
                0109   bison|yacc)
                0110     echo 1>&2 "\
                0111 WARNING: \`$1' is missing on your system.  You should only need it if
                0112          you modified a \`.y' file.  You may need the \`Bison' package
                0113          in order for those modifications to take effect.  You can get
                0114          \`Bison' from any GNU archive site."
                0115     rm -f y.tab.c y.tab.h
                0116     if [ $# -ne 1 ]; then
                0117         eval LASTARG="\${$#}"
                0118         case "$LASTARG" in
                0119         *.y)
                0120             SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
                0121             if [ -f "$SRCFILE" ]; then
                0122                  cp "$SRCFILE" y.tab.c
                0123             fi
                0124             SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
                0125             if [ -f "$SRCFILE" ]; then
                0126                  cp "$SRCFILE" y.tab.h
                0127             fi
                0128           ;;
                0129         esac
                0130     fi
                0131     if [ ! -f y.tab.h ]; then
                0132         echo >y.tab.h
                0133     fi
                0134     if [ ! -f y.tab.c ]; then
                0135         echo 'main() { return 0; }' >y.tab.c
                0136     fi
                0137     ;;
                0138 
                0139   lex|flex)
                0140     echo 1>&2 "\
                0141 WARNING: \`$1' is missing on your system.  You should only need it if
                0142          you modified a \`.l' file.  You may need the \`Flex' package
                0143          in order for those modifications to take effect.  You can get
                0144          \`Flex' from any GNU archive site."
                0145     rm -f lex.yy.c
                0146     if [ $# -ne 1 ]; then
                0147         eval LASTARG="\${$#}"
                0148         case "$LASTARG" in
                0149         *.l)
                0150             SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
                0151             if [ -f "$SRCFILE" ]; then
                0152                  cp "$SRCFILE" lex.yy.c
                0153             fi
                0154           ;;
                0155         esac
                0156     fi
                0157     if [ ! -f lex.yy.c ]; then
                0158         echo 'main() { return 0; }' >lex.yy.c
                0159     fi
                0160     ;;
                0161 
                0162   makeinfo)
                0163     echo 1>&2 "\
                0164 WARNING: \`$1' is missing on your system.  You should only need it if
                0165          you modified a \`.texi' or \`.texinfo' file, or any other file
                0166          indirectly affecting the aspect of the manual.  The spurious
                0167          call might also be the consequence of using a buggy \`make' (AIX,
                0168          DU, IRIX).  You might want to install the \`Texinfo' package or
                0169          the \`GNU make' package.  Grab either from any GNU archive site."
                0170     file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
                0171     if test -z "$file"; then
                0172       file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
                0173       file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
                0174     fi
                0175     touch $file
                0176     ;;
                0177 
                0178   *)
                0179     echo 1>&2 "\
                0180 WARNING: \`$1' is needed, and you do not seem to have it handy on your
                0181          system.  You might have modified some files without having the
                0182          proper tools for further handling them.  Check the \`README' file,
                0183          it often tells you about the needed prerequirements for installing
                0184          this package.  You may also peek at any GNU archive site, in case
                0185          some other package would contain this missing \`$1' program."
                0186     exit 1
                0187     ;;
                0188 esac
                0189 
                0190 exit 0