The R Project SVN R

Rev

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

Rev 18061 Rev 19979
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
# Copyright 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
3
# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
4
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
4
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
5
 
5
 
6
# This program is free software; you can redistribute it and/or modify
6
# This program is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 2, or (at your option)
8
# the Free Software Foundation; either version 2, or (at your option)
Line 291... Line 291...
291
 
291
 
292
    # We have already tried tar in the generic part.
292
    # We have already tried tar in the generic part.
293
    # Look for gnutar/gtar before invocation to avoid ugly error
293
    # Look for gnutar/gtar before invocation to avoid ugly error
294
    # messages.
294
    # messages.
295
    if (gnutar --version > /dev/null 2>&1); then
295
    if (gnutar --version > /dev/null 2>&1); then
296
       gnutar ${1+"$@"} && exit 0
296
       gnutar "$@" && exit 0
297
    fi
297
    fi
298
    if (gtar --version > /dev/null 2>&1); then
298
    if (gtar --version > /dev/null 2>&1); then
299
       gtar ${1+"$@"} && exit 0
299
       gtar "$@" && exit 0
300
    fi
300
    fi
301
    firstarg="$1"
301
    firstarg="$1"
302
    if shift; then
302
    if shift; then
303
	case "$firstarg" in
303
	case "$firstarg" in
304
	*o*)
304
	*o*)
305
	    firstarg=`echo "$firstarg" | sed s/o//`
305
	    firstarg=`echo "$firstarg" | sed s/o//`
306
	    tar "$firstarg" ${1+"$@"} && exit 0
306
	    tar "$firstarg" "$@" && exit 0
307
	    ;;
307
	    ;;
308
	esac
308
	esac
309
	case "$firstarg" in
309
	case "$firstarg" in
310
	*h*)
310
	*h*)
311
	    firstarg=`echo "$firstarg" | sed s/h//`
311
	    firstarg=`echo "$firstarg" | sed s/h//`
312
	    tar "$firstarg" ${1+"$@"} && exit 0
312
	    tar "$firstarg" "$@" && exit 0
313
	    ;;
313
	    ;;
314
	esac
314
	esac
315
    fi
315
    fi
316
 
316
 
317
    echo 1>&2 "\
317
    echo 1>&2 "\