From: Kurt Zeilenga Date: Mon, 3 Apr 2006 22:21:16 +0000 (+0000) Subject: update shtool to 2.0.5 X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~34 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4ce1deab46a6527b5873f4d5c533bc8971fb05a0;p=openldap update shtool to 2.0.5 --- diff --git a/build/shtool b/build/shtool index 2680d69380..3329641427 100755 --- a/build/shtool +++ b/build/shtool @@ -1,12 +1,12 @@ #!/bin/sh ## ## GNU shtool -- The GNU Portable Shell Tool -## Copyright (c) 1994-2005 Ralf S. Engelschall +## Copyright (c) 1994-2006 Ralf S. Engelschall ## ## See http://www.gnu.org/software/shtool/ for more information. ## See ftp://ftp.gnu.org/gnu/shtool/ for latest version. ## -## Version: 2.0.2 (15-Jun-2005) +## Version: 2.0.5 (07-Feb-2006) ## Contents: 6/19 available modules ## @@ -61,17 +61,42 @@ ## path Deal with program paths ## +# maximum Bourne-Shell compatibility +if [ ".$ZSH_VERSION" != . ] && (emulate sh) >/dev/null 2>&1; then + # reconfigure zsh(1) + emulate sh + NULLCMD=: + alias -g '${1+"$@"}'='"$@"' +elif [ ".$BASH_VERSION" != . ] && (set -o posix) >/dev/null 2>&1; then + # reconfigure bash(1) + set -o posix +fi + +# maximum independence of NLS nuisances +for var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $var=C; export $var) 2>&1`"); then + eval $var=C; export $var + else + unset $var + fi +done + +# initial command line handling if [ $# -eq 0 ]; then echo "$0:Error: invalid command line" 1>&2 echo "$0:Hint: run \`$0 -h' for usage" 1>&2 exit 1 fi if [ ".$1" = ".-h" ] || [ ".$1" = ".--help" ]; then - echo "This is GNU shtool, version 2.0.2 (15-Jun-2005)" - echo "Copyright (c) 1994-2005 Ralf S. Engelschall " - echo "Report bugs to " + echo "This is GNU shtool, version 2.0.5 (07-Feb-2006)" + echo 'Copyright (c) 1994-2006 Ralf S. Engelschall ' + echo 'Report bugs to ' echo '' - echo "Usage: shtool [] [ [] []]" + echo 'Usage: shtool [] [ [] []]' echo '' echo 'Available global :' echo ' -v, --version display shtool version information' @@ -136,7 +161,7 @@ if [ ".$1" = ".-h" ] || [ ".$1" = ".--help" ]; then exit 0 fi if [ ".$1" = ".-v" ] || [ ".$1" = ".--version" ]; then - echo "GNU shtool 2.0.2 (15-Jun-2005)" + echo "GNU shtool 2.0.5 (07-Feb-2006)" exit 0 fi if [ ".$1" = ".-r" ] || [ ".$1" = ".--recreate" ]; then @@ -455,7 +480,7 @@ case $tool in echo ) ## ## echo -- Print string with optional construct expansion - ## Copyright (c) 1998-2005 Ralf S. Engelschall + ## Copyright (c) 1998-2006 Ralf S. Engelschall ## text="$*" @@ -753,7 +778,7 @@ echo ) move ) ## ## move -- Move files with simultaneous substitution - ## Copyright (c) 1999-2005 Ralf S. Engelschall + ## Copyright (c) 1999-2006 Ralf S. Engelschall ## src="$1" @@ -845,7 +870,7 @@ move ) install ) ## ## install -- Install a program, script or datafile - ## Copyright (c) 1997-2005 Ralf S. Engelschall + ## Copyright (c) 1997-2006 Ralf S. Engelschall ## # special case: "shtool install -d [...]" internally @@ -1008,7 +1033,7 @@ install ) mkdir ) ## ## mkdir -- Make one or more directories - ## Copyright (c) 1996-2005 Ralf S. Engelschall + ## Copyright (c) 1996-2006 Ralf S. Engelschall ## errstatus=0 @@ -1096,7 +1121,7 @@ mkdir ) mkln ) ## ## mkln -- Make link with calculation of relative paths - ## Copyright (c) 1998-2005 Ralf S. Engelschall + ## Copyright (c) 1998-2006 Ralf S. Engelschall ## # determine source(s) and destination @@ -1247,7 +1272,7 @@ mkln ) subst ) ## ## subst -- Apply sed(1) substitution operations - ## Copyright (c) 2001-2005 Ralf S. Engelschall + ## Copyright (c) 2001-2006 Ralf S. Engelschall ## # remember optional list of file(s)