~ubuntu-branches/ubuntu/lucid/thaifonts-scalable/lucid-proposed

« back to all changes in this revision

Viewing changes to missing

  • Committer: Bazaar Package Importer
  • Author(s): Theppitak Karoonboonyanan
  • Date: 2009-06-19 13:30:22 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090619133022-evj1ll1fasgc1z6z
Tags: 1:0.4.12-1
* New upstream bugfix release.
* Update fontconfig files in sync to upstream:
  - debian/{ttf,otf}-thai-tlwg.links: Update links for fontconfig files
  - debian/rules: Ditto for fontconfig file installation for otf-thai-tlwg
* debian/ttf-thai-tlwg.preinst, debian/otf-thai-tlwg.preinst:
  - Clean up obsolete conffiles, for piuparts cleanness:
    /etc/fonts/conf.avail/90-ttf-thai-tlwg-synthetic.conf
    /etc/fonts/conf.avail/90-otf-thai-tlwg-synthetic.conf
* Bump Standards-Version to 3.8.2 (no changes needed)

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=2005-06-08.21
 
4
scriptversion=2006-05-10.23
5
5
 
6
 
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
 
6
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
7
7
#   Free Software Foundation, Inc.
8
8
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
9
9
 
33
33
fi
34
34
 
35
35
run=:
 
36
sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
 
37
sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
36
38
 
37
39
# In the cases where this matters, `missing' is being run in the
38
40
# srcdir already.
44
46
 
45
47
msg="missing on your system"
46
48
 
47
 
case "$1" in
 
49
case $1 in
48
50
--run)
49
51
  # Try to run requested program, and just exit if it succeeds.
50
52
  run=
77
79
  aclocal      touch file \`aclocal.m4'
78
80
  autoconf     touch file \`configure'
79
81
  autoheader   touch file \`config.h.in'
 
82
  autom4te     touch the output file, or create a stub one
80
83
  automake     touch all \`Makefile.in' files
81
84
  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
82
85
  flex         create \`lex.yy.c', if possible, from existing .c
106
109
# Now exit if we have it, but it failed.  Also exit now if we
107
110
# don't have it and --version was passed (most likely to detect
108
111
# the program).
109
 
case "$1" in
 
112
case $1 in
110
113
  lex|yacc)
111
114
    # Not GNU programs, they don't have --version.
112
115
    ;;
135
138
 
136
139
# If it does not exist, or fails to run (possibly an outdated version),
137
140
# try to emulate it.
138
 
case "$1" in
 
141
case $1 in
139
142
  aclocal*)
140
143
    echo 1>&2 "\
141
144
WARNING: \`$1' is $msg.  You should only need it if
164
167
    test -z "$files" && files="config.h"
165
168
    touch_files=
166
169
    for f in $files; do
167
 
      case "$f" in
 
170
      case $f in
168
171
      *:*) touch_files="$touch_files "`echo "$f" |
169
172
                                       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
170
173
      *) touch_files="$touch_files $f.in";;
192
195
         You can get \`$1' as part of \`Autoconf' from any GNU
193
196
         archive site."
194
197
 
195
 
    file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
196
 
    test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
 
198
    file=`echo "$*" | sed -n "$sed_output"`
 
199
    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
197
200
    if test -f "$file"; then
198
201
        touch $file
199
202
    else
214
217
         in order for those modifications to take effect.  You can get
215
218
         \`Bison' from any GNU archive site."
216
219
    rm -f y.tab.c y.tab.h
217
 
    if [ $# -ne 1 ]; then
 
220
    if test $# -ne 1; then
218
221
        eval LASTARG="\${$#}"
219
 
        case "$LASTARG" in
 
222
        case $LASTARG in
220
223
        *.y)
221
224
            SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
222
 
            if [ -f "$SRCFILE" ]; then
 
225
            if test -f "$SRCFILE"; then
223
226
                 cp "$SRCFILE" y.tab.c
224
227
            fi
225
228
            SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
226
 
            if [ -f "$SRCFILE" ]; then
 
229
            if test -f "$SRCFILE"; then
227
230
                 cp "$SRCFILE" y.tab.h
228
231
            fi
229
232
          ;;
230
233
        esac
231
234
    fi
232
 
    if [ ! -f y.tab.h ]; then
 
235
    if test ! -f y.tab.h; then
233
236
        echo >y.tab.h
234
237
    fi
235
 
    if [ ! -f y.tab.c ]; then
 
238
    if test ! -f y.tab.c; then
236
239
        echo 'main() { return 0; }' >y.tab.c
237
240
    fi
238
241
    ;;
244
247
         in order for those modifications to take effect.  You can get
245
248
         \`Flex' from any GNU archive site."
246
249
    rm -f lex.yy.c
247
 
    if [ $# -ne 1 ]; then
 
250
    if test $# -ne 1; then
248
251
        eval LASTARG="\${$#}"
249
 
        case "$LASTARG" in
 
252
        case $LASTARG in
250
253
        *.l)
251
254
            SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
252
 
            if [ -f "$SRCFILE" ]; then
 
255
            if test -f "$SRCFILE"; then
253
256
                 cp "$SRCFILE" lex.yy.c
254
257
            fi
255
258
          ;;
256
259
        esac
257
260
    fi
258
 
    if [ ! -f lex.yy.c ]; then
 
261
    if test ! -f lex.yy.c; then
259
262
        echo 'main() { return 0; }' >lex.yy.c
260
263
    fi
261
264
    ;;
267
270
         \`Help2man' package in order for those modifications to take
268
271
         effect.  You can get \`Help2man' from any GNU archive site."
269
272
 
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
 
273
    file=`echo "$*" | sed -n "$sed_output"`
 
274
    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
 
275
    if test -f "$file"; then
275
276
        touch $file
276
277
    else
277
278
        test -z "$file" || exec >$file
289
290
         DU, IRIX).  You might want to install the \`Texinfo' package or
290
291
         the \`GNU make' package.  Grab either from any GNU archive site."
291
292
    # The file to touch is that specified with -o ...
292
 
    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
 
293
    file=`echo "$*" | sed -n "$sed_output"`
 
294
    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
293
295
    if test -z "$file"; then
294
296
      # ... or it is the one specified with @setfilename ...
295
297
      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
296
 
      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
 
298
      file=`sed -n '
 
299
        /^@setfilename/{
 
300
          s/.* \([^ ]*\) *$/\1/
 
301
          p
 
302
          q
 
303
        }' $infile`
297
304
      # ... or it is derived from the source name (dir/f.texi becomes f.info)
298
305
      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
299
306
    fi
317
324
    fi
318
325
    firstarg="$1"
319
326
    if shift; then
320
 
        case "$firstarg" in
 
327
        case $firstarg in
321
328
        *o*)
322
329
            firstarg=`echo "$firstarg" | sed s/o//`
323
330
            tar "$firstarg" "$@" && exit 0
324
331
            ;;
325
332
        esac
326
 
        case "$firstarg" in
 
333
        case $firstarg in
327
334
        *h*)
328
335
            firstarg=`echo "$firstarg" | sed s/h//`
329
336
            tar "$firstarg" "$@" && exit 0