~ubuntu-branches/ubuntu/trusty/x11proto-core/trusty-proposed

« back to all changes in this revision

Viewing changes to missing

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2011-04-05 23:28:42 UTC
  • mfrom: (1.4.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20110405232842-b2ckujwo0os0qf2x
ImportĀ upstreamĀ versionĀ 7.0.21

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