(awk-font-lock-keywords): Add "do".
[emacs.git] / lispintro / missing
blob5b73d25789b2042e36415ed3a556765c034b51b7
1 #! /bin/sh
2 # Common stub for a few missing GNU programs while installing.
3 # Copyright (C) 1996, 1997, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4 # Free Software Foundation, Inc.
5 # Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20 # MA 02110-1301, USA.
22 if test $# -eq 0; then
23 echo 1>&2 "Try \`$0 --help' for more information"
24 exit 1
27 case "$1" in
29 -h|--h|--he|--hel|--help)
30 echo "\
31 $0 [OPTION]... PROGRAM [ARGUMENT]...
33 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
34 error status if there is no known handling for PROGRAM.
36 Options:
37 -h, --help display this help and exit
38 -v, --version output version information and exit
40 Supported PROGRAM values:
41 aclocal touch file \`aclocal.m4'
42 autoconf touch file \`configure'
43 autoheader touch file \`config.h.in'
44 automake touch all \`Makefile.in' files
45 bison touch file \`y.tab.c'
46 makeinfo touch the output file
47 yacc touch file \`y.tab.c'"
50 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
51 echo "missing - GNU libit 0.0"
54 -*)
55 echo 1>&2 "$0: Unknown \`$1' option"
56 echo 1>&2 "Try \`$0 --help' for more information"
57 exit 1
60 aclocal)
61 echo 1>&2 "\
62 WARNING: \`$1' is missing on your system. You should only need it if
63 you modified \`acinclude.m4' or \`configure.in'. You might want
64 to install the \`Automake' and \`Perl' packages. Grab them from
65 any GNU archive site."
66 touch aclocal.m4
69 autoconf)
70 echo 1>&2 "\
71 WARNING: \`$1' is missing on your system. You should only need it if
72 you modified \`configure.in'. You might want to install the
73 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
74 archive site."
75 touch configure
78 autoheader)
79 echo 1>&2 "\
80 WARNING: \`$1' is missing on your system. You should only need it if
81 you modified \`acconfig.h' or \`configure.in'. You might want
82 to install the \`Autoconf' and \`GNU m4' packages. Grab them
83 from any GNU archive site."
84 touch config.h.in
87 automake)
88 echo 1>&2 "\
89 WARNING: \`$1' is missing on your system. You should only need it if
90 you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
91 You might want to install the \`Automake' and \`Perl' packages.
92 Grab them from any GNU archive site."
93 find . -type f -name Makefile.am -print \
94 | sed 's/^\(.*\).am$/touch \1.in/' \
95 | sh
98 bison|yacc)
99 echo 1>&2 "\
100 WARNING: \`$1' is missing on your system. You should only need it if
101 you modified a \`.y' file. You may need the \`Bison' package
102 in order for those modifications to take effect. You can get
103 \`Bison' from any GNU archive site."
104 touch y.tab.c
107 makeinfo)
108 echo 1>&2 "\
109 WARNING: \`$1' is missing on your system. You should only need it if
110 you modified a \`.texi' or \`.texinfo' file, or any other file
111 indirectly affecting the aspect of the manual. The spurious
112 call might also be the consequence of using a buggy \`make' (AIX,
113 DU, IRIX). You might want to install the \`Texinfo' package or
114 the \`GNU make' package. Grab either from any GNU archive site."
115 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
116 if test -z "$file"; then
117 file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
118 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
120 touch $file
124 echo 1>&2 "\
125 WARNING: \`$1' is needed, and you do not seem to have it handy on your
126 system. You might have modified some files without having the
127 proper tools for further handling them. Check the \`README' file,
128 it often tells you about the needed prerequirements for installing
129 this package. You may also peek at any GNU archive site, in case
130 some other package would contain this missing \`$1' program."
131 exit 1
133 esac
135 exit 0