| 1 |
|
#! /bin/sh |
| 2 |
|
# Common stub for a few missing GNU programs while installing. |
| 3 |
|
|
| 4 |
< |
scriptversion=2006-05-10.23 |
| 4 |
> |
scriptversion=2009-04-28.21; # UTC |
| 5 |
|
|
| 6 |
< |
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 |
| 7 |
< |
# Free Software Foundation, Inc. |
| 6 |
> |
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, |
| 7 |
> |
# 2008, 2009 Free Software Foundation, Inc. |
| 8 |
|
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. |
| 9 |
|
|
| 10 |
|
# This program is free software; you can redistribute it and/or modify |
| 18 |
|
# GNU General Public License for more details. |
| 19 |
|
|
| 20 |
|
# You should have received a copy of the GNU General Public License |
| 21 |
< |
# along with this program; if not, write to the Free Software |
| 22 |
< |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 23 |
< |
# 02110-1301, USA. |
| 21 |
> |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 22 |
|
|
| 23 |
|
# As a special exception to the GNU General Public License, if you |
| 24 |
|
# distribute this file as part of a program that contains a |
| 87 |
|
tar try tar, gnutar, gtar, then tar without non-portable flags |
| 88 |
|
yacc create \`y.tab.[ch]', if possible, from existing .[ch] |
| 89 |
|
|
| 90 |
+ |
Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and |
| 91 |
+ |
\`g' are ignored when checking the name. |
| 92 |
+ |
|
| 93 |
|
Send bug reports to <bug-automake@gnu.org>." |
| 94 |
|
exit $? |
| 95 |
|
;; |
| 107 |
|
|
| 108 |
|
esac |
| 109 |
|
|
| 110 |
+ |
# normalize program name to check for. |
| 111 |
+ |
program=`echo "$1" | sed ' |
| 112 |
+ |
s/^gnu-//; t |
| 113 |
+ |
s/^gnu//; t |
| 114 |
+ |
s/^g//; t'` |
| 115 |
+ |
|
| 116 |
|
# Now exit if we have it, but it failed. Also exit now if we |
| 117 |
|
# don't have it and --version was passed (most likely to detect |
| 118 |
< |
# the program). |
| 118 |
> |
# the program). This is about non-GNU programs, so use $1 not |
| 119 |
> |
# $program. |
| 120 |
|
case $1 in |
| 121 |
< |
lex|yacc) |
| 121 |
> |
lex*|yacc*) |
| 122 |
|
# Not GNU programs, they don't have --version. |
| 123 |
|
;; |
| 124 |
|
|
| 125 |
< |
tar) |
| 125 |
> |
tar*) |
| 126 |
|
if test -n "$run"; then |
| 127 |
|
echo 1>&2 "ERROR: \`tar' requires --run" |
| 128 |
|
exit 1 |
| 146 |
|
|
| 147 |
|
# If it does not exist, or fails to run (possibly an outdated version), |
| 148 |
|
# try to emulate it. |
| 149 |
< |
case $1 in |
| 149 |
> |
case $program in |
| 150 |
|
aclocal*) |
| 151 |
|
echo 1>&2 "\ |
| 152 |
|
WARNING: \`$1' is $msg. You should only need it if |
| 156 |
|
touch aclocal.m4 |
| 157 |
|
;; |
| 158 |
|
|
| 159 |
< |
autoconf) |
| 159 |
> |
autoconf*) |
| 160 |
|
echo 1>&2 "\ |
| 161 |
|
WARNING: \`$1' is $msg. You should only need it if |
| 162 |
|
you modified \`${configure_ac}'. You might want to install the |
| 165 |
|
touch configure |
| 166 |
|
;; |
| 167 |
|
|
| 168 |
< |
autoheader) |
| 168 |
> |
autoheader*) |
| 169 |
|
echo 1>&2 "\ |
| 170 |
|
WARNING: \`$1' is $msg. You should only need it if |
| 171 |
|
you modified \`acconfig.h' or \`${configure_ac}'. You might want |
| 195 |
|
while read f; do touch "$f"; done |
| 196 |
|
;; |
| 197 |
|
|
| 198 |
< |
autom4te) |
| 198 |
> |
autom4te*) |
| 199 |
|
echo 1>&2 "\ |
| 200 |
|
WARNING: \`$1' is needed, but is $msg. |
| 201 |
|
You might have modified some files without having the |
| 218 |
|
fi |
| 219 |
|
;; |
| 220 |
|
|
| 221 |
< |
bison|yacc) |
| 221 |
> |
bison*|yacc*) |
| 222 |
|
echo 1>&2 "\ |
| 223 |
|
WARNING: \`$1' $msg. You should only need it if |
| 224 |
|
you modified a \`.y' file. You may need the \`Bison' package |
| 248 |
|
fi |
| 249 |
|
;; |
| 250 |
|
|
| 251 |
< |
lex|flex) |
| 251 |
> |
lex*|flex*) |
| 252 |
|
echo 1>&2 "\ |
| 253 |
|
WARNING: \`$1' is $msg. You should only need it if |
| 254 |
|
you modified a \`.l' file. You may need the \`Flex' package |
| 271 |
|
fi |
| 272 |
|
;; |
| 273 |
|
|
| 274 |
< |
help2man) |
| 274 |
> |
help2man*) |
| 275 |
|
echo 1>&2 "\ |
| 276 |
|
WARNING: \`$1' is $msg. You should only need it if |
| 277 |
|
you modified a dependency of a manual page. You may need the |
| 285 |
|
else |
| 286 |
|
test -z "$file" || exec >$file |
| 287 |
|
echo ".ab help2man is required to generate this page" |
| 288 |
< |
exit 1 |
| 288 |
> |
exit $? |
| 289 |
|
fi |
| 290 |
|
;; |
| 291 |
|
|
| 292 |
< |
makeinfo) |
| 292 |
> |
makeinfo*) |
| 293 |
|
echo 1>&2 "\ |
| 294 |
|
WARNING: \`$1' is $msg. You should only need it if |
| 295 |
|
you modified a \`.texi' or \`.texinfo' file, or any other file |
| 318 |
|
touch $file |
| 319 |
|
;; |
| 320 |
|
|
| 321 |
< |
tar) |
| 321 |
> |
tar*) |
| 322 |
|
shift |
| 323 |
|
|
| 324 |
|
# We have already tried tar in the generic part. |
| 371 |
|
# eval: (add-hook 'write-file-hooks 'time-stamp) |
| 372 |
|
# time-stamp-start: "scriptversion=" |
| 373 |
|
# time-stamp-format: "%:y-%02m-%02d.%02H" |
| 374 |
< |
# time-stamp-end: "$" |
| 374 |
> |
# time-stamp-time-zone: "UTC" |
| 375 |
> |
# time-stamp-end: "; # UTC" |
| 376 |
|
# End: |