~ubuntu-branches/ubuntu/trusty/globus-gram-job-manager-sge/trusty

« back to all changes in this revision

Viewing changes to missing

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2013-11-11 19:54:48 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20131111195448-6rg6hwus1z2u29z6
Tags: 1.7-1
* Update to Globus Toolkit 5.2.5
* Implement Multi-Arch support

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=2005-06-08.21
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
 
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
31
33
fi
32
34
 
33
35
run=:
34
 
sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
35
 
sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
36
36
 
37
37
# In the cases where this matters, `missing' is being run in the
38
38
# srcdir already.
44
44
 
45
45
msg="missing on your system"
46
46
 
47
 
case $1 in
 
47
case "$1" in
48
48
--run)
49
49
  # Try to run requested program, and just exit if it succeeds.
50
50
  run=
77
77
  aclocal      touch file \`aclocal.m4'
78
78
  autoconf     touch file \`configure'
79
79
  autoheader   touch file \`config.h.in'
80
 
  autom4te     touch the output file, or create a stub one
81
80
  automake     touch all \`Makefile.in' files
82
81
  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
83
82
  flex         create \`lex.yy.c', if possible, from existing .c
87
86
  tar          try tar, gnutar, gtar, then tar without non-portable flags
88
87
  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
89
88
 
90
 
Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
91
 
\`g' are ignored when checking the name.
92
 
 
93
89
Send bug reports to <bug-automake@gnu.org>."
94
90
    exit $?
95
91
    ;;
107
103
 
108
104
esac
109
105
 
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
106
# Now exit if we have it, but it failed.  Also exit now if we
117
107
# 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.
120
 
case $1 in
121
 
  lex*|yacc*)
 
108
# the program).
 
109
case "$1" in
 
110
  lex|yacc)
122
111
    # Not GNU programs, they don't have --version.
123
112
    ;;
124
113
 
125
 
  tar*)
 
114
  tar)
126
115
    if test -n "$run"; then
127
116
       echo 1>&2 "ERROR: \`tar' requires --run"
128
117
       exit 1
146
135
 
147
136
# If it does not exist, or fails to run (possibly an outdated version),
148
137
# try to emulate it.
149
 
case $program in
 
138
case "$1" in
150
139
  aclocal*)
151
140
    echo 1>&2 "\
152
141
WARNING: \`$1' is $msg.  You should only need it if
156
145
    touch aclocal.m4
157
146
    ;;
158
147
 
159
 
  autoconf*)
 
148
  autoconf)
160
149
    echo 1>&2 "\
161
150
WARNING: \`$1' is $msg.  You should only need it if
162
151
         you modified \`${configure_ac}'.  You might want to install the
165
154
    touch configure
166
155
    ;;
167
156
 
168
 
  autoheader*)
 
157
  autoheader)
169
158
    echo 1>&2 "\
170
159
WARNING: \`$1' is $msg.  You should only need it if
171
160
         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
175
164
    test -z "$files" && files="config.h"
176
165
    touch_files=
177
166
    for f in $files; do
178
 
      case $f in
 
167
      case "$f" in
179
168
      *:*) touch_files="$touch_files "`echo "$f" |
180
169
                                       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
181
170
      *) touch_files="$touch_files $f.in";;
195
184
           while read f; do touch "$f"; done
196
185
    ;;
197
186
 
198
 
  autom4te*)
 
187
  autom4te)
199
188
    echo 1>&2 "\
200
189
WARNING: \`$1' is needed, but is $msg.
201
190
         You might have modified some files without having the
203
192
         You can get \`$1' as part of \`Autoconf' from any GNU
204
193
         archive site."
205
194
 
206
 
    file=`echo "$*" | sed -n "$sed_output"`
207
 
    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
 
195
    file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
 
196
    test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
208
197
    if test -f "$file"; then
209
198
        touch $file
210
199
    else
218
207
    fi
219
208
    ;;
220
209
 
221
 
  bison*|yacc*)
 
210
  bison|yacc)
222
211
    echo 1>&2 "\
223
212
WARNING: \`$1' $msg.  You should only need it if
224
213
         you modified a \`.y' file.  You may need the \`Bison' package
225
214
         in order for those modifications to take effect.  You can get
226
215
         \`Bison' from any GNU archive site."
227
216
    rm -f y.tab.c y.tab.h
228
 
    if test $# -ne 1; then
 
217
    if [ $# -ne 1 ]; then
229
218
        eval LASTARG="\${$#}"
230
 
        case $LASTARG in
 
219
        case "$LASTARG" in
231
220
        *.y)
232
221
            SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
233
 
            if test -f "$SRCFILE"; then
 
222
            if [ -f "$SRCFILE" ]; then
234
223
                 cp "$SRCFILE" y.tab.c
235
224
            fi
236
225
            SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
237
 
            if test -f "$SRCFILE"; then
 
226
            if [ -f "$SRCFILE" ]; then
238
227
                 cp "$SRCFILE" y.tab.h
239
228
            fi
240
229
          ;;
241
230
        esac
242
231
    fi
243
 
    if test ! -f y.tab.h; then
 
232
    if [ ! -f y.tab.h ]; then
244
233
        echo >y.tab.h
245
234
    fi
246
 
    if test ! -f y.tab.c; then
 
235
    if [ ! -f y.tab.c ]; then
247
236
        echo 'main() { return 0; }' >y.tab.c
248
237
    fi
249
238
    ;;
250
239
 
251
 
  lex*|flex*)
 
240
  lex|flex)
252
241
    echo 1>&2 "\
253
242
WARNING: \`$1' is $msg.  You should only need it if
254
243
         you modified a \`.l' file.  You may need the \`Flex' package
255
244
         in order for those modifications to take effect.  You can get
256
245
         \`Flex' from any GNU archive site."
257
246
    rm -f lex.yy.c
258
 
    if test $# -ne 1; then
 
247
    if [ $# -ne 1 ]; then
259
248
        eval LASTARG="\${$#}"
260
 
        case $LASTARG in
 
249
        case "$LASTARG" in
261
250
        *.l)
262
251
            SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
263
 
            if test -f "$SRCFILE"; then
 
252
            if [ -f "$SRCFILE" ]; then
264
253
                 cp "$SRCFILE" lex.yy.c
265
254
            fi
266
255
          ;;
267
256
        esac
268
257
    fi
269
 
    if test ! -f lex.yy.c; then
 
258
    if [ ! -f lex.yy.c ]; then
270
259
        echo 'main() { return 0; }' >lex.yy.c
271
260
    fi
272
261
    ;;
273
262
 
274
 
  help2man*)
 
263
  help2man)
275
264
    echo 1>&2 "\
276
265
WARNING: \`$1' is $msg.  You should only need it if
277
266
         you modified a dependency of a manual page.  You may need the
278
267
         \`Help2man' package in order for those modifications to take
279
268
         effect.  You can get \`Help2man' from any GNU archive site."
280
269
 
281
 
    file=`echo "$*" | sed -n "$sed_output"`
282
 
    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
283
 
    if test -f "$file"; then
 
270
    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
 
271
    if test -z "$file"; then
 
272
        file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
 
273
    fi
 
274
    if [ -f "$file" ]; then
284
275
        touch $file
285
276
    else
286
277
        test -z "$file" || exec >$file
287
278
        echo ".ab help2man is required to generate this page"
288
 
        exit $?
 
279
        exit 1
289
280
    fi
290
281
    ;;
291
282
 
292
 
  makeinfo*)
 
283
  makeinfo)
293
284
    echo 1>&2 "\
294
285
WARNING: \`$1' is $msg.  You should only need it if
295
286
         you modified a \`.texi' or \`.texinfo' file, or any other file
298
289
         DU, IRIX).  You might want to install the \`Texinfo' package or
299
290
         the \`GNU make' package.  Grab either from any GNU archive site."
300
291
    # The file to touch is that specified with -o ...
301
 
    file=`echo "$*" | sed -n "$sed_output"`
302
 
    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
 
292
    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
303
293
    if test -z "$file"; then
304
294
      # ... or it is the one specified with @setfilename ...
305
295
      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
306
 
      file=`sed -n '
307
 
        /^@setfilename/{
308
 
          s/.* \([^ ]*\) *$/\1/
309
 
          p
310
 
          q
311
 
        }' $infile`
 
296
      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
312
297
      # ... or it is derived from the source name (dir/f.texi becomes f.info)
313
298
      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
314
299
    fi
318
303
    touch $file
319
304
    ;;
320
305
 
321
 
  tar*)
 
306
  tar)
322
307
    shift
323
308
 
324
309
    # We have already tried tar in the generic part.
332
317
    fi
333
318
    firstarg="$1"
334
319
    if shift; then
335
 
        case $firstarg in
 
320
        case "$firstarg" in
336
321
        *o*)
337
322
            firstarg=`echo "$firstarg" | sed s/o//`
338
323
            tar "$firstarg" "$@" && exit 0
339
324
            ;;
340
325
        esac
341
 
        case $firstarg in
 
326
        case "$firstarg" in
342
327
        *h*)
343
328
            firstarg=`echo "$firstarg" | sed s/h//`
344
329
            tar "$firstarg" "$@" && exit 0
371
356
# eval: (add-hook 'write-file-hooks 'time-stamp)
372
357
# time-stamp-start: "scriptversion="
373
358
# time-stamp-format: "%:y-%02m-%02d.%02H"
374
 
# time-stamp-time-zone: "UTC"
375
 
# time-stamp-end: "; # UTC"
 
359
# time-stamp-end: "$"
376
360
# End: