/[autoconf]/autoconf/config/missing
ViewVC logotype

Diff of /autoconf/config/missing

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by akim, Thu Jan 24 17:42:05 2002 UTC revision 1.7 by akim, Mon Apr 22 10:24:40 2002 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  # Common stub for a few missing GNU programs while installing.  # Common stub for a few missing GNU programs while installing.
3  # Copyright 1996, 1997, 1999, 2000 Free Software Foundation, Inc.  # Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
4  # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.  # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
5    
6  # This program is free software; you can redistribute it and/or modify  # This program is free software; you can redistribute it and/or modify
# Line 293  WARNING: \`$1' is missing on your system Line 293  WARNING: \`$1' is missing on your system
293      # Look for gnutar/gtar before invocation to avoid ugly error      # Look for gnutar/gtar before invocation to avoid ugly error
294      # messages.      # messages.
295      if (gnutar --version > /dev/null 2>&1); then      if (gnutar --version > /dev/null 2>&1); then
296         gnutar ${1+"$@"} && exit 0         gnutar "$@" && exit 0
297      fi      fi
298      if (gtar --version > /dev/null 2>&1); then      if (gtar --version > /dev/null 2>&1); then
299         gtar ${1+"$@"} && exit 0         gtar "$@" && exit 0
300      fi      fi
301      firstarg="$1"      firstarg="$1"
302      if shift; then      if shift; then
303          case "$firstarg" in          case "$firstarg" in
304          *o*)          *o*)
305              firstarg=`echo "$firstarg" | sed s/o//`              firstarg=`echo "$firstarg" | sed s/o//`
306              tar "$firstarg" ${1+"$@"} && exit 0              tar "$firstarg" "$@" && exit 0
307              ;;              ;;
308          esac          esac
309          case "$firstarg" in          case "$firstarg" in
310          *h*)          *h*)
311              firstarg=`echo "$firstarg" | sed s/h//`              firstarg=`echo "$firstarg" | sed s/h//`
312              tar "$firstarg" ${1+"$@"} && exit 0              tar "$firstarg" "$@" && exit 0
313              ;;              ;;
314          esac          esac
315      fi      fi

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26