The R Project SVN R

Rev

Rev 34432 | Rev 38381 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34432 Rev 37959
Line 1... Line 1...
1
#! /bin/sh
1
#! /bin/sh
2
# Common stub for a few missing GNU programs while installing.
2
# Common stub for a few missing GNU programs while installing.
3
 
3
 
4
scriptversion=2004-09-07.08
4
scriptversion=2006-01-12.21
5
 
5
 
6
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004
6
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
7
#   Free Software Foundation, Inc.
7
#   Free Software Foundation, Inc.
8
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
8
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
9
 
9
 
10
# This program is free software; you can redistribute it and/or modify
10
# This program is free software; you can redistribute it and/or modify
11
# it under the terms of the GNU General Public License as published by
11
# it under the terms of the GNU General Public License as published by
Line 85... Line 85...
85
  makeinfo     touch the output file
85
  makeinfo     touch the output file
86
  tar          try tar, gnutar, gtar, then tar without non-portable flags
86
  tar          try tar, gnutar, gtar, then tar without non-portable flags
87
  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
87
  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
88
 
88
 
89
Send bug reports to <bug-automake@gnu.org>."
89
Send bug reports to <bug-automake@gnu.org>."
90
    exit 0
90
    exit $?
91
    ;;
91
    ;;
92
 
92
 
93
  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
93
  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
94
    echo "missing $scriptversion (GNU Automake)"
94
    echo "missing $scriptversion (GNU Automake)"
95
    exit 0
95
    exit $?
96
    ;;
96
    ;;
97
 
97
 
98
  -*)
98
  -*)
99
    echo 1>&2 "$0: Unknown \`$1' option"
99
    echo 1>&2 "$0: Unknown \`$1' option"
100
    echo 1>&2 "Try \`$0 --help' for more information"
100
    echo 1>&2 "Try \`$0 --help' for more information"
Line 286... Line 286...
286
         you modified a \`.texi' or \`.texinfo' file, or any other file
286
         you modified a \`.texi' or \`.texinfo' file, or any other file
287
         indirectly affecting the aspect of the manual.  The spurious
287
         indirectly affecting the aspect of the manual.  The spurious
288
         call might also be the consequence of using a buggy \`make' (AIX,
288
         call might also be the consequence of using a buggy \`make' (AIX,
289
         DU, IRIX).  You might want to install the \`Texinfo' package or
289
         DU, IRIX).  You might want to install the \`Texinfo' package or
290
         the \`GNU make' package.  Grab either from any GNU archive site."
290
         the \`GNU make' package.  Grab either from any GNU archive site."
-
 
291
    # The file to touch is that specified with -o ...
291
    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
292
    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
292
    if test -z "$file"; then
293
    if test -z "$file"; then
-
 
294
      # ... or it is the one specified with @setfilename ...
293
      file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
295
      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
-
 
296
      file=`sed -n '
-
 
297
	/^@setfilename/{
-
 
298
	  s/.* \([^ ]*\) *$/\1/
-
 
299
	  p
-
 
300
	  q
-
 
301
	}' $infile`
-
 
302
      # ... or it is derived from the source name (dir/f.texi becomes f.info)
294
      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
303
      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
295
    fi
304
    fi
-
 
305
    # If the file does not exist, the user really needs makeinfo;
-
 
306
    # let's fail without touching anything.
-
 
307
    test -f $file || exit 1
296
    touch $file
308
    touch $file
297
    ;;
309
    ;;
298
 
310
 
299
  tar)
311
  tar)
300
    shift
312
    shift