annotate lib/swig/swigwin-2.0.11/Tools/config/missing @ 2215:e9625ad08541

fog fix and change 640,480 - window->GetWidth(), window->GetHeight()
author Ritor1
date Fri, 14 Feb 2014 18:08:30 +0600
parents b3009adc0e2f
children
rev   line source
1899
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1 #! /bin/sh
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
2 # Common stub for a few missing GNU programs while installing.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
3
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
4 scriptversion=2012-01-06.13; # UTC
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
5
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
6 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
7 # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
8 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
9
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
10 # This program is free software; you can redistribute it and/or modify
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
11 # it under the terms of the GNU General Public License as published by
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
12 # the Free Software Foundation; either version 2, or (at your option)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
13 # any later version.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
14
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
15 # This program is distributed in the hope that it will be useful,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
18 # GNU General Public License for more details.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
19
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
20 # You should have received a copy of the GNU General Public License
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
21 # along with this program. If not, see <http://www.gnu.org/licenses/>.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
22
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
23 # As a special exception to the GNU General Public License, if you
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
24 # distribute this file as part of a program that contains a
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
25 # configuration script generated by Autoconf, you may include it under
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
26 # the same distribution terms that you use for the rest of that program.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
27
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
28 if test $# -eq 0; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
29 echo 1>&2 "Try \`$0 --help' for more information"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
30 exit 1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
31 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
32
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
33 run=:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
34 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
35 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
36
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
37 # In the cases where this matters, `missing' is being run in the
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
38 # srcdir already.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
39 if test -f configure.ac; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
40 configure_ac=configure.ac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
41 else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
42 configure_ac=configure.in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
43 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
44
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
45 msg="missing on your system"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
46
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
47 case $1 in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
48 --run)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
49 # Try to run requested program, and just exit if it succeeds.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
50 run=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
51 shift
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
52 "$@" && exit 0
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
53 # Exit code 63 means version mismatch. This often happens
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
54 # when the user try to use an ancient version of a tool on
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
55 # a file that requires a minimum version. In this case we
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
56 # we should proceed has if the program had been absent, or
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
57 # if --run hadn't been passed.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
58 if test $? = 63; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
59 run=:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
60 msg="probably too old"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
61 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
62 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
63
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
64 -h|--h|--he|--hel|--help)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
65 echo "\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
66 $0 [OPTION]... PROGRAM [ARGUMENT]...
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
67
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
68 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
69 error status if there is no known handling for PROGRAM.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
70
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
71 Options:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
72 -h, --help display this help and exit
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
73 -v, --version output version information and exit
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
74 --run try to run the given command, and emulate it if it fails
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
75
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
76 Supported PROGRAM values:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
77 aclocal touch file \`aclocal.m4'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
78 autoconf touch file \`configure'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
79 autoheader touch file \`config.h.in'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
80 autom4te touch the output file, or create a stub one
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
81 automake touch all \`Makefile.in' files
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
82 bison create \`y.tab.[ch]', if possible, from existing .[ch]
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
83 flex create \`lex.yy.c', if possible, from existing .c
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
84 help2man touch the output file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
85 lex create \`lex.yy.c', if possible, from existing .c
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
86 makeinfo touch the output file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
87 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
88
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
89 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
90 \`g' are ignored when checking the name.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
91
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
92 Send bug reports to <bug-automake@gnu.org>."
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
93 exit $?
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
94 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
95
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
96 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
97 echo "missing $scriptversion (GNU Automake)"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
98 exit $?
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
99 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
100
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
101 -*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
102 echo 1>&2 "$0: Unknown \`$1' option"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
103 echo 1>&2 "Try \`$0 --help' for more information"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
104 exit 1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
105 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
106
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
107 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
108
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
109 # normalize program name to check for.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
110 program=`echo "$1" | sed '
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
111 s/^gnu-//; t
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
112 s/^gnu//; t
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
113 s/^g//; t'`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
114
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
115 # Now exit if we have it, but it failed. Also exit now if we
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
116 # don't have it and --version was passed (most likely to detect
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
117 # the program). This is about non-GNU programs, so use $1 not
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
118 # $program.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
119 case $1 in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
120 lex*|yacc*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
121 # Not GNU programs, they don't have --version.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
122 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
123
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
124 *)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
125 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
126 # We have it, but it failed.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
127 exit 1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
128 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
129 # Could not run --version or --help. This is probably someone
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
130 # running `$TOOL --version' or `$TOOL --help' to check whether
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
131 # $TOOL exists and not knowing $TOOL uses missing.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
132 exit 1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
133 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
134 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
135 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
136
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
137 # If it does not exist, or fails to run (possibly an outdated version),
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
138 # try to emulate it.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
139 case $program in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
140 aclocal*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
141 echo 1>&2 "\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
142 WARNING: \`$1' is $msg. You should only need it if
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
143 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
144 to install the \`Automake' and \`Perl' packages. Grab them from
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
145 any GNU archive site."
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
146 touch aclocal.m4
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
147 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
148
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
149 autoconf*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
150 echo 1>&2 "\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
151 WARNING: \`$1' is $msg. You should only need it if
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
152 you modified \`${configure_ac}'. You might want to install the
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
153 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
154 archive site."
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
155 touch configure
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
156 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
157
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
158 autoheader*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
159 echo 1>&2 "\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
160 WARNING: \`$1' is $msg. You should only need it if
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
161 you modified \`acconfig.h' or \`${configure_ac}'. You might want
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
162 to install the \`Autoconf' and \`GNU m4' packages. Grab them
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
163 from any GNU archive site."
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
164 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
165 test -z "$files" && files="config.h"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
166 touch_files=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
167 for f in $files; do
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
168 case $f in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
169 *:*) touch_files="$touch_files "`echo "$f" |
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
170 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
171 *) touch_files="$touch_files $f.in";;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
172 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
173 done
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
174 touch $touch_files
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
175 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
176
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
177 automake*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
178 echo 1>&2 "\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
179 WARNING: \`$1' is $msg. You should only need it if
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
180 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
181 You might want to install the \`Automake' and \`Perl' packages.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
182 Grab them from any GNU archive site."
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
183 find . -type f -name Makefile.am -print |
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
184 sed 's/\.am$/.in/' |
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
185 while read f; do touch "$f"; done
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
186 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
187
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
188 autom4te*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
189 echo 1>&2 "\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
190 WARNING: \`$1' is needed, but is $msg.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
191 You might have modified some files without having the
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
192 proper tools for further handling them.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
193 You can get \`$1' as part of \`Autoconf' from any GNU
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
194 archive site."
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
195
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
196 file=`echo "$*" | sed -n "$sed_output"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
197 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
198 if test -f "$file"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
199 touch $file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
200 else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
201 test -z "$file" || exec >$file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
202 echo "#! /bin/sh"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
203 echo "# Created by GNU Automake missing as a replacement of"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
204 echo "# $ $@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
205 echo "exit 0"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
206 chmod +x $file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
207 exit 1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
208 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
209 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
210
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
211 bison*|yacc*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
212 echo 1>&2 "\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
213 WARNING: \`$1' $msg. You should only need it if
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
214 you modified a \`.y' file. You may need the \`Bison' package
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
215 in order for those modifications to take effect. You can get
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
216 \`Bison' from any GNU archive site."
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
217 rm -f y.tab.c y.tab.h
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
218 if test $# -ne 1; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
219 eval LASTARG=\${$#}
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
220 case $LASTARG in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
221 *.y)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
222 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
223 if test -f "$SRCFILE"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
224 cp "$SRCFILE" y.tab.c
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
225 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
226 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
227 if test -f "$SRCFILE"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
228 cp "$SRCFILE" y.tab.h
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
229 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
230 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
231 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
232 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
233 if test ! -f y.tab.h; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
234 echo >y.tab.h
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
235 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
236 if test ! -f y.tab.c; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
237 echo 'main() { return 0; }' >y.tab.c
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
238 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
239 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
240
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
241 lex*|flex*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
242 echo 1>&2 "\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
243 WARNING: \`$1' is $msg. You should only need it if
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
244 you modified a \`.l' file. You may need the \`Flex' package
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
245 in order for those modifications to take effect. You can get
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
246 \`Flex' from any GNU archive site."
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
247 rm -f lex.yy.c
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
248 if test $# -ne 1; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
249 eval LASTARG=\${$#}
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
250 case $LASTARG in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
251 *.l)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
252 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
253 if test -f "$SRCFILE"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
254 cp "$SRCFILE" lex.yy.c
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
255 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
256 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
257 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
258 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
259 if test ! -f lex.yy.c; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
260 echo 'main() { return 0; }' >lex.yy.c
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
261 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
262 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
263
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
264 help2man*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
265 echo 1>&2 "\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
266 WARNING: \`$1' is $msg. You should only need it if
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
267 you modified a dependency of a manual page. You may need the
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
268 \`Help2man' package in order for those modifications to take
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
269 effect. You can get \`Help2man' from any GNU archive site."
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
270
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
271 file=`echo "$*" | sed -n "$sed_output"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
272 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
273 if test -f "$file"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
274 touch $file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
275 else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
276 test -z "$file" || exec >$file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
277 echo ".ab help2man is required to generate this page"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
278 exit $?
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
279 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
280 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
281
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
282 makeinfo*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
283 echo 1>&2 "\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
284 WARNING: \`$1' is $msg. You should only need it if
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
285 you modified a \`.texi' or \`.texinfo' file, or any other file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
286 indirectly affecting the aspect of the manual. The spurious
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
287 call might also be the consequence of using a buggy \`make' (AIX,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
288 DU, IRIX). You might want to install the \`Texinfo' package or
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
289 the \`GNU make' package. Grab either from any GNU archive site."
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
290 # The file to touch is that specified with -o ...
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
291 file=`echo "$*" | sed -n "$sed_output"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
292 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
293 if test -z "$file"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
294 # ... or it is the one specified with @setfilename ...
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
295 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
296 file=`sed -n '
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
297 /^@setfilename/{
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
298 s/.* \([^ ]*\) *$/\1/
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
299 p
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
300 q
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
301 }' $infile`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
302 # ... or it is derived from the source name (dir/f.texi becomes f.info)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
303 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
304 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
305 # If the file does not exist, the user really needs makeinfo;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
306 # let's fail without touching anything.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
307 test -f $file || exit 1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
308 touch $file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
309 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
310
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
311 *)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
312 echo 1>&2 "\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
313 WARNING: \`$1' is needed, and is $msg.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
314 You might have modified some files without having the
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
315 proper tools for further handling them. Check the \`README' file,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
316 it often tells you about the needed prerequisites for installing
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
317 this package. You may also peek at any GNU archive site, in case
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
318 some other package would contain this missing \`$1' program."
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
319 exit 1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
320 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
321 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
322
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
323 exit 0
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
324
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
325 # Local variables:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
326 # eval: (add-hook 'write-file-hooks 'time-stamp)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
327 # time-stamp-start: "scriptversion="
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
328 # time-stamp-format: "%:y-%02m-%02d.%02H"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
329 # time-stamp-time-zone: "UTC"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
330 # time-stamp-end: "; # UTC"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
331 # End: