Erik Grinaker is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

erikg / Revelation

Revelation is a password manager for the GNOME desktop, released under the GNU GPL license. It stores all your accounts and passwords in a single, secure place, and gives you access to it through a user-friendly graphical interface.

Clone this repository (size: 2.1 MB): HTTPS / SSH
hg clone https://bitbucket.org/erikg/revelation
hg clone ssh://hg@bitbucket.org/erikg/revelation

Revelation / missing

commit
35864a73a048
parent
070d0062872f
branch
default
tags
revelation-0.4.3

bumped version number to 0.4.3

1
a207757f8451
#! /bin/sh
2
a207757f8451
# Common stub for a few missing GNU programs while installing.
3
a207757f8451
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
4
a207757f8451
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
5
a207757f8451
6
a207757f8451
# This program is free software; you can redistribute it and/or modify
7
a207757f8451
# it under the terms of the GNU General Public License as published by
8
a207757f8451
# the Free Software Foundation; either version 2, or (at your option)
9
a207757f8451
# any later version.
10
a207757f8451
11
a207757f8451
# This program is distributed in the hope that it will be useful,
12
a207757f8451
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
a207757f8451
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
a207757f8451
# GNU General Public License for more details.
15
a207757f8451
16
a207757f8451
# You should have received a copy of the GNU General Public License
17
a207757f8451
# along with this program; if not, write to the Free Software
18
a207757f8451
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19
a207757f8451
# 02111-1307, USA.
20
a207757f8451
21
a207757f8451
# As a special exception to the GNU General Public License, if you
22
a207757f8451
# distribute this file as part of a program that contains a
23
a207757f8451
# configuration script generated by Autoconf, you may include it under
24
a207757f8451
# the same distribution terms that you use for the rest of that program.
25
a207757f8451
26
a207757f8451
if test $# -eq 0; then
27
a207757f8451
  echo 1>&2 "Try \`$0 --help' for more information"
28
a207757f8451
  exit 1
29
a207757f8451
fi
30
a207757f8451
31
a207757f8451
run=:
32
a207757f8451
33
a207757f8451
# In the cases where this matters, `missing' is being run in the
34
a207757f8451
# srcdir already.
35
a207757f8451
if test -f configure.ac; then
36
a207757f8451
  configure_ac=configure.ac
37
a207757f8451
else
38
a207757f8451
  configure_ac=configure.in
39
a207757f8451
fi
40
a207757f8451
41
a207757f8451
case "$1" in
42
a207757f8451
--run)
43
a207757f8451
  # Try to run requested program, and just exit if it succeeds.
44
a207757f8451
  run=
45
a207757f8451
  shift
46
a207757f8451
  "$@" && exit 0
47
a207757f8451
  ;;
48
a207757f8451
esac
49
a207757f8451
50
a207757f8451
# If it does not exist, or fails to run (possibly an outdated version),
51
a207757f8451
# try to emulate it.
52
a207757f8451
case "$1" in
53
a207757f8451
54
a207757f8451
  -h|--h|--he|--hel|--help)
55
a207757f8451
    echo "\
56
a207757f8451
$0 [OPTION]... PROGRAM [ARGUMENT]...
57
a207757f8451
58
a207757f8451
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
59
a207757f8451
error status if there is no known handling for PROGRAM.
60
a207757f8451
61
a207757f8451
Options:
62
a207757f8451
  -h, --help      display this help and exit
63
a207757f8451
  -v, --version   output version information and exit
64
a207757f8451
  --run           try to run the given command, and emulate it if it fails
65
a207757f8451
66
a207757f8451
Supported PROGRAM values:
67
a207757f8451
  aclocal      touch file \`aclocal.m4'
68
a207757f8451
  autoconf     touch file \`configure'
69
a207757f8451
  autoheader   touch file \`config.h.in'
70
a207757f8451
  automake     touch all \`Makefile.in' files
71
a207757f8451
  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
72
a207757f8451
  flex         create \`lex.yy.c', if possible, from existing .c
73
a207757f8451
  help2man     touch the output file
74
a207757f8451
  lex          create \`lex.yy.c', if possible, from existing .c
75
a207757f8451
  makeinfo     touch the output file
76
a207757f8451
  tar          try tar, gnutar, gtar, then tar without non-portable flags
77
a207757f8451
  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]"
78
a207757f8451
    ;;
79
a207757f8451
80
a207757f8451
  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
81
a207757f8451
    echo "missing 0.4 - GNU automake"
82
a207757f8451
    ;;
83
a207757f8451
84
a207757f8451
  -*)
85
a207757f8451
    echo 1>&2 "$0: Unknown \`$1' option"
86
a207757f8451
    echo 1>&2 "Try \`$0 --help' for more information"
87
a207757f8451
    exit 1
88
a207757f8451
    ;;
89
a207757f8451
90
a207757f8451
  aclocal*)
91
a207757f8451
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
92
a207757f8451
       # We have it, but it failed.
93
a207757f8451
       exit 1
94
a207757f8451
    fi
95
a207757f8451
96
a207757f8451
    echo 1>&2 "\
97
a207757f8451
WARNING: \`$1' is missing on your system.  You should only need it if
98
a207757f8451
         you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
99
a207757f8451
         to install the \`Automake' and \`Perl' packages.  Grab them from
100
a207757f8451
         any GNU archive site."
101
a207757f8451
    touch aclocal.m4
102
a207757f8451
    ;;
103
a207757f8451
104
a207757f8451
  autoconf)
105
a207757f8451
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
106
a207757f8451
       # We have it, but it failed.
107
a207757f8451
       exit 1
108
a207757f8451
    fi
109
a207757f8451
110
a207757f8451
    echo 1>&2 "\
111
a207757f8451
WARNING: \`$1' is missing on your system.  You should only need it if
112
a207757f8451
         you modified \`${configure_ac}'.  You might want to install the
113
a207757f8451
         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
114
a207757f8451
         archive site."
115
a207757f8451
    touch configure
116
a207757f8451
    ;;
117
a207757f8451
118
a207757f8451
  autoheader)
119
a207757f8451
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
120
a207757f8451
       # We have it, but it failed.
121
a207757f8451
       exit 1
122
a207757f8451
    fi
123
a207757f8451
124
a207757f8451
    echo 1>&2 "\
125
a207757f8451
WARNING: \`$1' is missing on your system.  You should only need it if
126
a207757f8451
         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
127
a207757f8451
         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
128
a207757f8451
         from any GNU archive site."
129
a207757f8451
    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
130
a207757f8451
    test -z "$files" && files="config.h"
131
a207757f8451
    touch_files=
132
a207757f8451
    for f in $files; do
133
a207757f8451
      case "$f" in
134
a207757f8451
      *:*) touch_files="$touch_files "`echo "$f" |
135
a207757f8451
				       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
136
a207757f8451
      *) touch_files="$touch_files $f.in";;
137
a207757f8451
      esac
138
a207757f8451
    done
139
a207757f8451
    touch $touch_files
140
a207757f8451
    ;;
141
a207757f8451
142
a207757f8451
  automake*)
143
a207757f8451
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
144
a207757f8451
       # We have it, but it failed.
145
a207757f8451
       exit 1
146
a207757f8451
    fi
147
a207757f8451
148
a207757f8451
    echo 1>&2 "\
149
a207757f8451
WARNING: \`$1' is missing on your system.  You should only need it if
150
a207757f8451
         you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
151
a207757f8451
         You might want to install the \`Automake' and \`Perl' packages.
152
a207757f8451
         Grab them from any GNU archive site."
153
a207757f8451
    find . -type f -name Makefile.am -print |
154
a207757f8451
	   sed 's/\.am$/.in/' |
155
a207757f8451
	   while read f; do touch "$f"; done
156
a207757f8451
    ;;
157
a207757f8451
158
a207757f8451
  autom4te)
159
a207757f8451
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
160
a207757f8451
       # We have it, but it failed.
161
a207757f8451
       exit 1
162
a207757f8451
    fi
163
a207757f8451
164
a207757f8451
    echo 1>&2 "\
165
a207757f8451
WARNING: \`$1' is needed, and you do not seem to have it handy on your
166
a207757f8451
         system.  You might have modified some files without having the
167
a207757f8451
         proper tools for further handling them.
168
a207757f8451
         You can get \`$1' as part of \`Autoconf' from any GNU
169
a207757f8451
         archive site."
170
a207757f8451
171
a207757f8451
    file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
172
a207757f8451
    test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
173
a207757f8451
    if test -f "$file"; then
174
a207757f8451
	touch $file
175
a207757f8451
    else
176
a207757f8451
	test -z "$file" || exec >$file
177
a207757f8451
	echo "#! /bin/sh"
178
a207757f8451
	echo "# Created by GNU Automake missing as a replacement of"
179
a207757f8451
	echo "#  $ $@"
180
a207757f8451
	echo "exit 0"
181
a207757f8451
	chmod +x $file
182
a207757f8451
	exit 1
183
a207757f8451
    fi
184
a207757f8451
    ;;
185
a207757f8451
186
a207757f8451
  bison|yacc)
187
a207757f8451
    echo 1>&2 "\
188
a207757f8451
WARNING: \`$1' is missing on your system.  You should only need it if
189
a207757f8451
         you modified a \`.y' file.  You may need the \`Bison' package
190
a207757f8451
         in order for those modifications to take effect.  You can get
191
a207757f8451
         \`Bison' from any GNU archive site."
192
a207757f8451
    rm -f y.tab.c y.tab.h
193
a207757f8451
    if [ $# -ne 1 ]; then
194
a207757f8451
        eval LASTARG="\${$#}"
195
a207757f8451
	case "$LASTARG" in
196
a207757f8451
	*.y)
197
a207757f8451
	    SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
198
a207757f8451
	    if [ -f "$SRCFILE" ]; then
199
a207757f8451
	         cp "$SRCFILE" y.tab.c
200
a207757f8451
	    fi
201
a207757f8451
	    SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
202
a207757f8451
	    if [ -f "$SRCFILE" ]; then
203
a207757f8451
	         cp "$SRCFILE" y.tab.h
204
a207757f8451
	    fi
205
a207757f8451
	  ;;
206
a207757f8451
	esac
207
a207757f8451
    fi
208
a207757f8451
    if [ ! -f y.tab.h ]; then
209
a207757f8451
	echo >y.tab.h
210
a207757f8451
    fi
211
a207757f8451
    if [ ! -f y.tab.c ]; then
212
a207757f8451
	echo 'main() { return 0; }' >y.tab.c
213
a207757f8451
    fi
214
a207757f8451
    ;;
215
a207757f8451
216
a207757f8451
  lex|flex)
217
a207757f8451
    echo 1>&2 "\
218
a207757f8451
WARNING: \`$1' is missing on your system.  You should only need it if
219
a207757f8451
         you modified a \`.l' file.  You may need the \`Flex' package
220
a207757f8451
         in order for those modifications to take effect.  You can get
221
a207757f8451
         \`Flex' from any GNU archive site."
222
a207757f8451
    rm -f lex.yy.c
223
a207757f8451
    if [ $# -ne 1 ]; then
224
a207757f8451
        eval LASTARG="\${$#}"
225
a207757f8451
	case "$LASTARG" in
226
a207757f8451
	*.l)
227
a207757f8451
	    SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
228
a207757f8451
	    if [ -f "$SRCFILE" ]; then
229
a207757f8451
	         cp "$SRCFILE" lex.yy.c
230
a207757f8451
	    fi
231
a207757f8451
	  ;;
232
a207757f8451
	esac
233
a207757f8451
    fi
234
a207757f8451
    if [ ! -f lex.yy.c ]; then
235
a207757f8451
	echo 'main() { return 0; }' >lex.yy.c
236
a207757f8451
    fi
237
a207757f8451
    ;;
238
a207757f8451
239
a207757f8451
  help2man)
240
a207757f8451
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
241
a207757f8451
       # We have it, but it failed.
242
a207757f8451
       exit 1
243
a207757f8451
    fi
244
a207757f8451
245
a207757f8451
    echo 1>&2 "\
246
a207757f8451
WARNING: \`$1' is missing on your system.  You should only need it if
247
a207757f8451
	 you modified a dependency of a manual page.  You may need the
248
a207757f8451
	 \`Help2man' package in order for those modifications to take
249
a207757f8451
	 effect.  You can get \`Help2man' from any GNU archive site."
250
a207757f8451
251
a207757f8451
    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
252
a207757f8451
    if test -z "$file"; then
253
a207757f8451
	file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
254
a207757f8451
    fi
255
a207757f8451
    if [ -f "$file" ]; then
256
a207757f8451
	touch $file
257
a207757f8451
    else
258
a207757f8451
	test -z "$file" || exec >$file
259
a207757f8451
	echo ".ab help2man is required to generate this page"
260
a207757f8451
	exit 1
261
a207757f8451
    fi
262
a207757f8451
    ;;
263
a207757f8451
264
a207757f8451
  makeinfo)
265
a207757f8451
    if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
266
a207757f8451
       # We have makeinfo, but it failed.
267
a207757f8451
       exit 1
268
a207757f8451
    fi
269
a207757f8451
270
a207757f8451
    echo 1>&2 "\
271
a207757f8451
WARNING: \`$1' is missing on your system.  You should only need it if
272
a207757f8451
         you modified a \`.texi' or \`.texinfo' file, or any other file
273
a207757f8451
         indirectly affecting the aspect of the manual.  The spurious
274
a207757f8451
         call might also be the consequence of using a buggy \`make' (AIX,
275
a207757f8451
         DU, IRIX).  You might want to install the \`Texinfo' package or
276
a207757f8451
         the \`GNU make' package.  Grab either from any GNU archive site."
277
a207757f8451
    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
278
a207757f8451
    if test -z "$file"; then
279
a207757f8451
      file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
280
a207757f8451
      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
281
a207757f8451
    fi
282
a207757f8451
    touch $file
283
a207757f8451
    ;;
284
a207757f8451
285
a207757f8451
  tar)
286
a207757f8451
    shift
287
a207757f8451
    if test -n "$run"; then
288
a207757f8451
      echo 1>&2 "ERROR: \`tar' requires --run"
289
a207757f8451
      exit 1
290
a207757f8451
    fi
291
a207757f8451
292
a207757f8451
    # We have already tried tar in the generic part.
293
a207757f8451
    # Look for gnutar/gtar before invocation to avoid ugly error
294
a207757f8451
    # messages.
295
a207757f8451
    if (gnutar --version > /dev/null 2>&1); then
296
a207757f8451
       gnutar "$@" && exit 0
297
a207757f8451
    fi
298
a207757f8451
    if (gtar --version > /dev/null 2>&1); then
299
a207757f8451
       gtar "$@" && exit 0
300
a207757f8451
    fi
301
a207757f8451
    firstarg="$1"
302
a207757f8451
    if shift; then
303
a207757f8451
	case "$firstarg" in
304
a207757f8451
	*o*)
305
a207757f8451
	    firstarg=`echo "$firstarg" | sed s/o//`
306
a207757f8451
	    tar "$firstarg" "$@" && exit 0
307
a207757f8451
	    ;;
308
a207757f8451
	esac
309
a207757f8451
	case "$firstarg" in
310
a207757f8451
	*h*)
311
a207757f8451
	    firstarg=`echo "$firstarg" | sed s/h//`
312
a207757f8451
	    tar "$firstarg" "$@" && exit 0
313
a207757f8451
	    ;;
314
a207757f8451
	esac
315
a207757f8451
    fi
316
a207757f8451
317
a207757f8451
    echo 1>&2 "\
318
a207757f8451
WARNING: I can't seem to be able to run \`tar' with the given arguments.
319
a207757f8451
         You may want to install GNU tar or Free paxutils, or check the
320
a207757f8451
         command line arguments."
321
a207757f8451
    exit 1
322
a207757f8451
    ;;
323
a207757f8451
324
a207757f8451
  *)
325
a207757f8451
    echo 1>&2 "\
326
a207757f8451
WARNING: \`$1' is needed, and you do not seem to have it handy on your
327
a207757f8451
         system.  You might have modified some files without having the
328
a207757f8451
         proper tools for further handling them.  Check the \`README' file,
329
a207757f8451
         it often tells you about the needed prerequisites for installing
330
a207757f8451
         this package.  You may also peek at any GNU archive site, in case
331
a207757f8451
         some other package would contain this missing \`$1' program."
332
a207757f8451
    exit 1
333
a207757f8451
    ;;
334
a207757f8451
esac
335
a207757f8451
336
a207757f8451
exit 0