Mercurial > emacs
annotate lispintro/missing @ 75273:ae5f2fc6a71a
* INSTALL: Info files moved to share/info.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Thu, 18 Jan 2007 16:13:22 +0000 |
parents | 6d19c76d81c5 |
children |
rev | line source |
---|---|
41429 | 1 #! /bin/sh |
2 # Common stub for a few missing GNU programs while installing. | |
75250
6d19c76d81c5
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
64092
diff
changeset
|
3 # Copyright (C) 1996, 1997, 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
6d19c76d81c5
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
64092
diff
changeset
|
4 # Free Software Foundation, Inc. |
41429 | 5 # Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996. |
6 | |
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. | |
11 | |
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. | |
16 | |
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 | |
64092 | 19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
20 # MA 02110-1301, USA. | |
41429 | 21 |
22 if test $# -eq 0; then | |
23 echo 1>&2 "Try \`$0 --help' for more information" | |
24 exit 1 | |
25 fi | |
26 | |
27 case "$1" in | |
28 | |
29 -h|--h|--he|--hel|--help) | |
30 echo "\ | |
31 $0 [OPTION]... PROGRAM [ARGUMENT]... | |
32 | |
33 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | |
34 error status if there is no known handling for PROGRAM. | |
35 | |
36 Options: | |
37 -h, --help display this help and exit | |
38 -v, --version output version information and exit | |
39 | |
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'" | |
48 ;; | |
49 | |
50 -v|--v|--ve|--ver|--vers|--versi|--versio|--version) | |
51 echo "missing - GNU libit 0.0" | |
52 ;; | |
53 | |
54 -*) | |
55 echo 1>&2 "$0: Unknown \`$1' option" | |
56 echo 1>&2 "Try \`$0 --help' for more information" | |
57 exit 1 | |
58 ;; | |
59 | |
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 | |
67 ;; | |
68 | |
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 | |
76 ;; | |
77 | |
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 | |
85 ;; | |
86 | |
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 | |
96 ;; | |
97 | |
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 | |
105 ;; | |
106 | |
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` | |
119 fi | |
120 touch $file | |
121 ;; | |
122 | |
123 *) | |
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 | |
132 ;; | |
133 esac | |
134 | |
135 exit 0 |