~ubuntu-branches/ubuntu/hoary/debianutils/hoary

« back to all changes in this revision

Viewing changes to missing

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams
  • Date: 2004-12-23 15:34:30 UTC
  • mfrom: (1.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20041223153430-1qazumbpia7qisqi
Tags: 2.11.2
configure.ac, debian/rules: derive version numbers from
debian/changelog. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Common stub for a few missing GNU programs while installing.
3
3
 
4
 
scriptversion=2003-09-02.23
 
4
scriptversion=2004-09-07.08
5
5
 
6
 
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 
 
6
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004
7
7
#   Free Software Foundation, Inc.
8
8
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
9
9
 
60
60
    msg="probably too old"
61
61
  fi
62
62
  ;;
63
 
esac
64
 
 
65
 
# If it does not exist, or fails to run (possibly an outdated version),
66
 
# try to emulate it.
67
 
case "$1" in
68
63
 
69
64
  -h|--h|--he|--hel|--help)
70
65
    echo "\
92
87
  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
93
88
 
94
89
Send bug reports to <bug-automake@gnu.org>."
 
90
    exit 0
95
91
    ;;
96
92
 
97
93
  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
98
94
    echo "missing $scriptversion (GNU Automake)"
 
95
    exit 0
99
96
    ;;
100
97
 
101
98
  -*)
104
101
    exit 1
105
102
    ;;
106
103
 
 
104
esac
 
105
 
 
106
# Now exit if we have it, but it failed.  Also exit now if we
 
107
# don't have it and --version was passed (most likely to detect
 
108
# the program).
 
109
case "$1" in
 
110
  lex|yacc)
 
111
    # Not GNU programs, they don't have --version.
 
112
    ;;
 
113
 
 
114
  tar)
 
115
    if test -n "$run"; then
 
116
       echo 1>&2 "ERROR: \`tar' requires --run"
 
117
       exit 1
 
118
    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
 
119
       exit 1
 
120
    fi
 
121
    ;;
 
122
 
 
123
  *)
 
124
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
 
125
       # We have it, but it failed.
 
126
       exit 1
 
127
    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
 
128
       # Could not run --version or --help.  This is probably someone
 
129
       # running `$TOOL --version' or `$TOOL --help' to check whether
 
130
       # $TOOL exists and not knowing $TOOL uses missing.
 
131
       exit 1
 
132
    fi
 
133
    ;;
 
134
esac
 
135
 
 
136
# If it does not exist, or fails to run (possibly an outdated version),
 
137
# try to emulate it.
 
138
case "$1" in
107
139
  aclocal*)
108
 
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
109
 
       # We have it, but it failed.
110
 
       exit 1
111
 
    fi
112
 
 
113
140
    echo 1>&2 "\
114
141
WARNING: \`$1' is $msg.  You should only need it if
115
142
         you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
119
146
    ;;
120
147
 
121
148
  autoconf)
122
 
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
123
 
       # We have it, but it failed.
124
 
       exit 1
125
 
    fi
126
 
 
127
149
    echo 1>&2 "\
128
150
WARNING: \`$1' is $msg.  You should only need it if
129
151
         you modified \`${configure_ac}'.  You might want to install the
133
155
    ;;
134
156
 
135
157
  autoheader)
136
 
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
137
 
       # We have it, but it failed.
138
 
       exit 1
139
 
    fi
140
 
 
141
158
    echo 1>&2 "\
142
159
WARNING: \`$1' is $msg.  You should only need it if
143
160
         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
157
174
    ;;
158
175
 
159
176
  automake*)
160
 
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
161
 
       # We have it, but it failed.
162
 
       exit 1
163
 
    fi
164
 
 
165
177
    echo 1>&2 "\
166
178
WARNING: \`$1' is $msg.  You should only need it if
167
179
         you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
173
185
    ;;
174
186
 
175
187
  autom4te)
176
 
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
177
 
       # We have it, but it failed.
178
 
       exit 1
179
 
    fi
180
 
 
181
188
    echo 1>&2 "\
182
189
WARNING: \`$1' is needed, but is $msg.
183
190
         You might have modified some files without having the
254
261
    ;;
255
262
 
256
263
  help2man)
257
 
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
258
 
       # We have it, but it failed.
259
 
       exit 1
260
 
    fi
261
 
 
262
264
    echo 1>&2 "\
263
265
WARNING: \`$1' is $msg.  You should only need it if
264
266
         you modified a dependency of a manual page.  You may need the
279
281
    ;;
280
282
 
281
283
  makeinfo)
282
 
    if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
283
 
       # We have makeinfo, but it failed.
284
 
       exit 1
285
 
    fi
286
 
 
287
284
    echo 1>&2 "\
288
285
WARNING: \`$1' is $msg.  You should only need it if
289
286
         you modified a \`.texi' or \`.texinfo' file, or any other file
301
298
 
302
299
  tar)
303
300
    shift
304
 
    if test -n "$run"; then
305
 
      echo 1>&2 "ERROR: \`tar' requires --run"
306
 
      exit 1
307
 
    fi
308
301
 
309
302
    # We have already tried tar in the generic part.
310
303
    # Look for gnutar/gtar before invocation to avoid ugly error