Diff for /embedaddon/arping/missing between versions 1.1 and 1.1.1.2

version 1.1, 2012/02/21 22:16:27 version 1.1.1.2, 2014/06/15 16:26:43
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
 # Common stub for a few missing GNU programs while installing.  # Common stub for a few missing GNU programs while installing.
   
scriptversion=2006-05-10.23scriptversion=2012-01-06.13; # UTC
   
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
#   Free Software Foundation, Inc.# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.  # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
   
 # 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 18  scriptversion=2006-05-10.23 Line 18  scriptversion=2006-05-10.23
 # GNU General Public License for more details.  # GNU General Public License for more details.
   
 # You should have received a copy of the GNU General Public License  # You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software# along with this program.  If not, see <http://www.gnu.org/licenses/>.
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 
# 02110-1301, USA. 
   
 # As a special exception to the GNU General Public License, if you  # As a special exception to the GNU General Public License, if you
 # distribute this file as part of a program that contains a  # distribute this file as part of a program that contains a
Line 86  Supported PROGRAM values: Line 84  Supported PROGRAM values:
   help2man     touch the output file    help2man     touch the output file
   lex          create \`lex.yy.c', if possible, from existing .c    lex          create \`lex.yy.c', if possible, from existing .c
   makeinfo     touch the output file    makeinfo     touch the output file
   tar          try tar, gnutar, gtar, then tar without non-portable flags  
   yacc         create \`y.tab.[ch]', if possible, from existing .[ch]    yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
   
   Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
   \`g' are ignored when checking the name.
   
 Send bug reports to <bug-automake@gnu.org>."  Send bug reports to <bug-automake@gnu.org>."
     exit $?      exit $?
     ;;      ;;
Line 106  Send bug reports to <bug-automake@gnu.org>." Line 106  Send bug reports to <bug-automake@gnu.org>."
   
 esac  esac
   
   # normalize program name to check for.
   program=`echo "$1" | sed '
     s/^gnu-//; t
     s/^gnu//; t
     s/^g//; t'`
   
 # Now exit if we have it, but it failed.  Also exit now if we  # Now exit if we have it, but it failed.  Also exit now if we
 # don't have it and --version was passed (most likely to detect  # don't have it and --version was passed (most likely to detect
# the program).# the program).  This is about non-GNU programs, so use $1 not
 # $program.
 case $1 in  case $1 in
  lex|yacc)  lex*|yacc*)
     # Not GNU programs, they don't have --version.      # Not GNU programs, they don't have --version.
     ;;      ;;
   
   tar)  
     if test -n "$run"; then  
        echo 1>&2 "ERROR: \`tar' requires --run"  
        exit 1  
     elif test "x$2" = "x--version" || test "x$2" = "x--help"; then  
        exit 1  
     fi  
     ;;  
   
   *)    *)
     if test -z "$run" && ($1 --version) > /dev/null 2>&1; then      if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
        # We have it, but it failed.         # We have it, but it failed.
Line 138  esac Line 136  esac
   
 # If it does not exist, or fails to run (possibly an outdated version),  # If it does not exist, or fails to run (possibly an outdated version),
 # try to emulate it.  # try to emulate it.
case $1 incase $program in
   aclocal*)    aclocal*)
     echo 1>&2 "\      echo 1>&2 "\
 WARNING: \`$1' is $msg.  You should only need it if  WARNING: \`$1' is $msg.  You should only need it if
Line 148  WARNING: \`$1' is $msg.  You should only need it if Line 146  WARNING: \`$1' is $msg.  You should only need it if
     touch aclocal.m4      touch aclocal.m4
     ;;      ;;
   
  autoconf)  autoconf*)
     echo 1>&2 "\      echo 1>&2 "\
 WARNING: \`$1' is $msg.  You should only need it if  WARNING: \`$1' is $msg.  You should only need it if
          you modified \`${configure_ac}'.  You might want to install the           you modified \`${configure_ac}'.  You might want to install the
Line 157  WARNING: \`$1' is $msg.  You should only need it if Line 155  WARNING: \`$1' is $msg.  You should only need it if
     touch configure      touch configure
     ;;      ;;
   
  autoheader)  autoheader*)
     echo 1>&2 "\      echo 1>&2 "\
 WARNING: \`$1' is $msg.  You should only need it if  WARNING: \`$1' is $msg.  You should only need it if
          you modified \`acconfig.h' or \`${configure_ac}'.  You might want           you modified \`acconfig.h' or \`${configure_ac}'.  You might want
Line 187  WARNING: \`$1' is $msg.  You should only need it if Line 185  WARNING: \`$1' is $msg.  You should only need it if
            while read f; do touch "$f"; done             while read f; do touch "$f"; done
     ;;      ;;
   
  autom4te)  autom4te*)
     echo 1>&2 "\      echo 1>&2 "\
 WARNING: \`$1' is needed, but is $msg.  WARNING: \`$1' is needed, but is $msg.
          You might have modified some files without having the           You might have modified some files without having the
Line 210  WARNING: \`$1' is needed, but is $msg. Line 208  WARNING: \`$1' is needed, but is $msg.
     fi      fi
     ;;      ;;
   
  bison|yacc)  bison*|yacc*)
     echo 1>&2 "\      echo 1>&2 "\
 WARNING: \`$1' $msg.  You should only need it if  WARNING: \`$1' $msg.  You should only need it if
          you modified a \`.y' file.  You may need the \`Bison' package           you modified a \`.y' file.  You may need the \`Bison' package
Line 218  WARNING: \`$1' $msg.  You should only need it if Line 216  WARNING: \`$1' $msg.  You should only need it if
          \`Bison' from any GNU archive site."           \`Bison' from any GNU archive site."
     rm -f y.tab.c y.tab.h      rm -f y.tab.c y.tab.h
     if test $# -ne 1; then      if test $# -ne 1; then
        eval LASTARG="\${$#}"        eval LASTARG=\${$#}
         case $LASTARG in          case $LASTARG in
         *.y)          *.y)
             SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`              SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
Line 240  WARNING: \`$1' $msg.  You should only need it if Line 238  WARNING: \`$1' $msg.  You should only need it if
     fi      fi
     ;;      ;;
   
  lex|flex)  lex*|flex*)
     echo 1>&2 "\      echo 1>&2 "\
 WARNING: \`$1' is $msg.  You should only need it if  WARNING: \`$1' is $msg.  You should only need it if
          you modified a \`.l' file.  You may need the \`Flex' package           you modified a \`.l' file.  You may need the \`Flex' package
Line 248  WARNING: \`$1' is $msg.  You should only need it if Line 246  WARNING: \`$1' is $msg.  You should only need it if
          \`Flex' from any GNU archive site."           \`Flex' from any GNU archive site."
     rm -f lex.yy.c      rm -f lex.yy.c
     if test $# -ne 1; then      if test $# -ne 1; then
        eval LASTARG="\${$#}"        eval LASTARG=\${$#}
         case $LASTARG in          case $LASTARG in
         *.l)          *.l)
             SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`              SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
Line 263  WARNING: \`$1' is $msg.  You should only need it if Line 261  WARNING: \`$1' is $msg.  You should only need it if
     fi      fi
     ;;      ;;
   
  help2man)  help2man*)
     echo 1>&2 "\      echo 1>&2 "\
 WARNING: \`$1' is $msg.  You should only need it if  WARNING: \`$1' is $msg.  You should only need it if
          you modified a dependency of a manual page.  You may need the           you modified a dependency of a manual page.  You may need the
Line 277  WARNING: \`$1' is $msg.  You should only need it if Line 275  WARNING: \`$1' is $msg.  You should only need it if
     else      else
         test -z "$file" || exec >$file          test -z "$file" || exec >$file
         echo ".ab help2man is required to generate this page"          echo ".ab help2man is required to generate this page"
        exit 1        exit $?
     fi      fi
     ;;      ;;
   
  makeinfo)  makeinfo*)
     echo 1>&2 "\      echo 1>&2 "\
 WARNING: \`$1' is $msg.  You should only need it if  WARNING: \`$1' is $msg.  You should only need it if
          you modified a \`.texi' or \`.texinfo' file, or any other file           you modified a \`.texi' or \`.texinfo' file, or any other file
Line 310  WARNING: \`$1' is $msg.  You should only need it if Line 308  WARNING: \`$1' is $msg.  You should only need it if
     touch $file      touch $file
     ;;      ;;
   
   tar)  
     shift  
   
     # We have already tried tar in the generic part.  
     # Look for gnutar/gtar before invocation to avoid ugly error  
     # messages.  
     if (gnutar --version > /dev/null 2>&1); then  
        gnutar "$@" && exit 0  
     fi  
     if (gtar --version > /dev/null 2>&1); then  
        gtar "$@" && exit 0  
     fi  
     firstarg="$1"  
     if shift; then  
         case $firstarg in  
         *o*)  
             firstarg=`echo "$firstarg" | sed s/o//`  
             tar "$firstarg" "$@" && exit 0  
             ;;  
         esac  
         case $firstarg in  
         *h*)  
             firstarg=`echo "$firstarg" | sed s/h//`  
             tar "$firstarg" "$@" && exit 0  
             ;;  
         esac  
     fi  
   
     echo 1>&2 "\  
 WARNING: I can't seem to be able to run \`tar' with the given arguments.  
          You may want to install GNU tar or Free paxutils, or check the  
          command line arguments."  
     exit 1  
     ;;  
   
   *)    *)
     echo 1>&2 "\      echo 1>&2 "\
 WARNING: \`$1' is needed, and is $msg.  WARNING: \`$1' is needed, and is $msg.
Line 363  exit 0 Line 326  exit 0
 # eval: (add-hook 'write-file-hooks 'time-stamp)  # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "scriptversion="  # time-stamp-start: "scriptversion="
 # time-stamp-format: "%:y-%02m-%02d.%02H"  # time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-end: "$"# time-stamp-time-zone: "UTC"
 # time-stamp-end: "; # UTC"
 # End:  # End:

Removed from v.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>