1.1 --- a/tools/pcre/missing Sun Mar 17 11:29:55 2013 -0400
1.2 +++ b/tools/pcre/missing Sun Mar 17 11:32:03 2013 -0400
1.3 @@ -1,10 +1,10 @@
1.4 #! /bin/sh
1.5 # Common stub for a few missing GNU programs while installing.
1.6
1.7 -scriptversion=2006-05-10.23
1.8 +scriptversion=2012-01-06.13; # UTC
1.9
1.10 -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
1.11 -# Free Software Foundation, Inc.
1.12 +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
1.13 +# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
1.14 # Originally by Fran,cois Pinard <[email protected]>, 1996.
1.15
1.16 # This program is free software; you can redistribute it and/or modify
1.17 @@ -18,9 +18,7 @@
1.18 # GNU General Public License for more details.
1.19
1.20 # You should have received a copy of the GNU General Public License
1.21 -# along with this program; if not, write to the Free Software
1.22 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
1.23 -# 02110-1301, USA.
1.24 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1.25
1.26 # As a special exception to the GNU General Public License, if you
1.27 # distribute this file as part of a program that contains a
1.28 @@ -86,9 +84,11 @@
1.29 help2man touch the output file
1.30 lex create \`lex.yy.c', if possible, from existing .c
1.31 makeinfo touch the output file
1.32 - tar try tar, gnutar, gtar, then tar without non-portable flags
1.33 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
1.34
1.35 +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
1.36 +\`g' are ignored when checking the name.
1.37 +
1.38 Send bug reports to <[email protected]>."
1.39 exit $?
1.40 ;;
1.41 @@ -106,23 +106,21 @@
1.42
1.43 esac
1.44
1.45 +# normalize program name to check for.
1.46 +program=`echo "$1" | sed '
1.47 + s/^gnu-//; t
1.48 + s/^gnu//; t
1.49 + s/^g//; t'`
1.50 +
1.51 # Now exit if we have it, but it failed. Also exit now if we
1.52 # don't have it and --version was passed (most likely to detect
1.53 -# the program).
1.54 +# the program). This is about non-GNU programs, so use $1 not
1.55 +# $program.
1.56 case $1 in
1.57 - lex|yacc)
1.58 + lex*|yacc*)
1.59 # Not GNU programs, they don't have --version.
1.60 ;;
1.61
1.62 - tar)
1.63 - if test -n "$run"; then
1.64 - echo 1>&2 "ERROR: \`tar' requires --run"
1.65 - exit 1
1.66 - elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
1.67 - exit 1
1.68 - fi
1.69 - ;;
1.70 -
1.71 *)
1.72 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
1.73 # We have it, but it failed.
1.74 @@ -138,7 +136,7 @@
1.75
1.76 # If it does not exist, or fails to run (possibly an outdated version),
1.77 # try to emulate it.
1.78 -case $1 in
1.79 +case $program in
1.80 aclocal*)
1.81 echo 1>&2 "\
1.82 WARNING: \`$1' is $msg. You should only need it if
1.83 @@ -148,7 +146,7 @@
1.84 touch aclocal.m4
1.85 ;;
1.86
1.87 - autoconf)
1.88 + autoconf*)
1.89 echo 1>&2 "\
1.90 WARNING: \`$1' is $msg. You should only need it if
1.91 you modified \`${configure_ac}'. You might want to install the
1.92 @@ -157,7 +155,7 @@
1.93 touch configure
1.94 ;;
1.95
1.96 - autoheader)
1.97 + autoheader*)
1.98 echo 1>&2 "\
1.99 WARNING: \`$1' is $msg. You should only need it if
1.100 you modified \`acconfig.h' or \`${configure_ac}'. You might want
1.101 @@ -187,7 +185,7 @@
1.102 while read f; do touch "$f"; done
1.103 ;;
1.104
1.105 - autom4te)
1.106 + autom4te*)
1.107 echo 1>&2 "\
1.108 WARNING: \`$1' is needed, but is $msg.
1.109 You might have modified some files without having the
1.110 @@ -210,7 +208,7 @@
1.111 fi
1.112 ;;
1.113
1.114 - bison|yacc)
1.115 + bison*|yacc*)
1.116 echo 1>&2 "\
1.117 WARNING: \`$1' $msg. You should only need it if
1.118 you modified a \`.y' file. You may need the \`Bison' package
1.119 @@ -218,7 +216,7 @@
1.120 \`Bison' from any GNU archive site."
1.121 rm -f y.tab.c y.tab.h
1.122 if test $# -ne 1; then
1.123 - eval LASTARG="\${$#}"
1.124 + eval LASTARG=\${$#}
1.125 case $LASTARG in
1.126 *.y)
1.127 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
1.128 @@ -240,7 +238,7 @@
1.129 fi
1.130 ;;
1.131
1.132 - lex|flex)
1.133 + lex*|flex*)
1.134 echo 1>&2 "\
1.135 WARNING: \`$1' is $msg. You should only need it if
1.136 you modified a \`.l' file. You may need the \`Flex' package
1.137 @@ -248,7 +246,7 @@
1.138 \`Flex' from any GNU archive site."
1.139 rm -f lex.yy.c
1.140 if test $# -ne 1; then
1.141 - eval LASTARG="\${$#}"
1.142 + eval LASTARG=\${$#}
1.143 case $LASTARG in
1.144 *.l)
1.145 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
1.146 @@ -263,7 +261,7 @@
1.147 fi
1.148 ;;
1.149
1.150 - help2man)
1.151 + help2man*)
1.152 echo 1>&2 "\
1.153 WARNING: \`$1' is $msg. You should only need it if
1.154 you modified a dependency of a manual page. You may need the
1.155 @@ -277,11 +275,11 @@
1.156 else
1.157 test -z "$file" || exec >$file
1.158 echo ".ab help2man is required to generate this page"
1.159 - exit 1
1.160 + exit $?
1.161 fi
1.162 ;;
1.163
1.164 - makeinfo)
1.165 + makeinfo*)
1.166 echo 1>&2 "\
1.167 WARNING: \`$1' is $msg. You should only need it if
1.168 you modified a \`.texi' or \`.texinfo' file, or any other file
1.169 @@ -310,41 +308,6 @@
1.170 touch $file
1.171 ;;
1.172
1.173 - tar)
1.174 - shift
1.175 -
1.176 - # We have already tried tar in the generic part.
1.177 - # Look for gnutar/gtar before invocation to avoid ugly error
1.178 - # messages.
1.179 - if (gnutar --version > /dev/null 2>&1); then
1.180 - gnutar "$@" && exit 0
1.181 - fi
1.182 - if (gtar --version > /dev/null 2>&1); then
1.183 - gtar "$@" && exit 0
1.184 - fi
1.185 - firstarg="$1"
1.186 - if shift; then
1.187 - case $firstarg in
1.188 - *o*)
1.189 - firstarg=`echo "$firstarg" | sed s/o//`
1.190 - tar "$firstarg" "$@" && exit 0
1.191 - ;;
1.192 - esac
1.193 - case $firstarg in
1.194 - *h*)
1.195 - firstarg=`echo "$firstarg" | sed s/h//`
1.196 - tar "$firstarg" "$@" && exit 0
1.197 - ;;
1.198 - esac
1.199 - fi
1.200 -
1.201 - echo 1>&2 "\
1.202 -WARNING: I can't seem to be able to run \`tar' with the given arguments.
1.203 - You may want to install GNU tar or Free paxutils, or check the
1.204 - command line arguments."
1.205 - exit 1
1.206 - ;;
1.207 -
1.208 *)
1.209 echo 1>&2 "\
1.210 WARNING: \`$1' is needed, and is $msg.
1.211 @@ -363,5 +326,6 @@
1.212 # eval: (add-hook 'write-file-hooks 'time-stamp)
1.213 # time-stamp-start: "scriptversion="
1.214 # time-stamp-format: "%:y-%02m-%02d.%02H"
1.215 -# time-stamp-end: "$"
1.216 +# time-stamp-time-zone: "UTC"
1.217 +# time-stamp-end: "; # UTC"
1.218 # End: