Diff for /build/shtool between versions 1.5.2.1 and 1.5.2.2

version 1.5.2.1, 2005/07/10 04:36:39 version 1.5.2.2, 2006/04/04 01:16:55
Line 1 Line 1
 #!/bin/sh  #!/bin/sh
 ##  ##
 ##  GNU shtool -- The GNU Portable Shell Tool  ##  GNU shtool -- The GNU Portable Shell Tool
 ##  Copyright (c) 1994-2005 Ralf S. Engelschall <rse@engelschall.com>  ##  Copyright (c) 1994-2006 Ralf S. Engelschall <rse@engelschall.com>
 ##  ##
 ##  See http://www.gnu.org/software/shtool/ for more information.  ##  See http://www.gnu.org/software/shtool/ for more information.
 ##  See ftp://ftp.gnu.org/gnu/shtool/ for latest version.  ##  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  ##  Contents: 6/19 available modules
 ##  ##
   
Line 61 Line 61
 ##    path       Deal with program paths  ##    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  if [ $# -eq 0 ]; then
     echo "$0:Error: invalid command line" 1>&2      echo "$0:Error: invalid command line" 1>&2
     echo "$0:Hint:  run \`$0 -h' for usage" 1>&2      echo "$0:Hint:  run \`$0 -h' for usage" 1>&2
     exit 1      exit 1
 fi  fi
 if [ ".$1" = ".-h" ] || [ ".$1" = ".--help" ]; then  if [ ".$1" = ".-h" ] || [ ".$1" = ".--help" ]; then
     echo "This is GNU shtool, version 2.0.2 (15-Jun-2005)"      echo "This is GNU shtool, version 2.0.5 (07-Feb-2006)"
     echo "Copyright (c) 1994-2005 Ralf S. Engelschall <rse@engelschall.com>"      echo 'Copyright (c) 1994-2006 Ralf S. Engelschall <rse@engelschall.com>'
     echo "Report bugs to <bug-shtool@gnu.org>"      echo 'Report bugs to <bug-shtool@gnu.org>'
     echo ''      echo ''
     echo "Usage: shtool [<options>] [<cmd-name> [<cmd-options>] [<cmd-args>]]"      echo 'Usage: shtool [<options>] [<cmd-name> [<cmd-options>] [<cmd-args>]]'
     echo ''      echo ''
     echo 'Available global <options>:'      echo 'Available global <options>:'
     echo '  -v, --version   display shtool version information'      echo '  -v, --version   display shtool version information'
Line 136  if [ ".$1" = ".-h" ] || [ ".$1" = ".--he Line 161  if [ ".$1" = ".-h" ] || [ ".$1" = ".--he
     exit 0      exit 0
 fi  fi
 if [ ".$1" = ".-v" ] || [ ".$1" = ".--version" ]; then  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      exit 0
 fi  fi
 if [ ".$1" = ".-r" ] || [ ".$1" = ".--recreate" ]; then  if [ ".$1" = ".-r" ] || [ ".$1" = ".--recreate" ]; then
Line 455  case $tool in Line 480  case $tool in
 echo )  echo )
     ##      ##
     ##  echo -- Print string with optional construct expansion      ##  echo -- Print string with optional construct expansion
     ##  Copyright (c) 1998-2005 Ralf S. Engelschall <rse@engelschall.com>      ##  Copyright (c) 1998-2006 Ralf S. Engelschall <rse@engelschall.com>
     ##      ##
   
     text="$*"      text="$*"
Line 753  echo ) Line 778  echo )
 move )  move )
     ##      ##
     ##  move -- Move files with simultaneous substitution      ##  move -- Move files with simultaneous substitution
     ##  Copyright (c) 1999-2005 Ralf S. Engelschall <rse@engelschall.com>      ##  Copyright (c) 1999-2006 Ralf S. Engelschall <rse@engelschall.com>
     ##      ##
   
     src="$1"      src="$1"
Line 845  move ) Line 870  move )
 install )  install )
     ##      ##
     ##  install -- Install a program, script or datafile      ##  install -- Install a program, script or datafile
     ##  Copyright (c) 1997-2005 Ralf S. Engelschall <rse@engelschall.com>      ##  Copyright (c) 1997-2006 Ralf S. Engelschall <rse@engelschall.com>
     ##      ##
   
     #   special case: "shtool install -d <dir> [...]" internally      #   special case: "shtool install -d <dir> [...]" internally
Line 1008  install ) Line 1033  install )
 mkdir )  mkdir )
     ##      ##
     ##  mkdir -- Make one or more directories      ##  mkdir -- Make one or more directories
     ##  Copyright (c) 1996-2005 Ralf S. Engelschall <rse@engelschall.com>      ##  Copyright (c) 1996-2006 Ralf S. Engelschall <rse@engelschall.com>
     ##      ##
   
     errstatus=0      errstatus=0
Line 1096  mkdir ) Line 1121  mkdir )
 mkln )  mkln )
     ##      ##
     ##  mkln -- Make link with calculation of relative paths      ##  mkln -- Make link with calculation of relative paths
     ##  Copyright (c) 1998-2005 Ralf S. Engelschall <rse@engelschall.com>      ##  Copyright (c) 1998-2006 Ralf S. Engelschall <rse@engelschall.com>
     ##      ##
   
     #   determine source(s) and destination      #   determine source(s) and destination
Line 1247  mkln ) Line 1272  mkln )
 subst )  subst )
     ##      ##
     ##  subst -- Apply sed(1) substitution operations      ##  subst -- Apply sed(1) substitution operations
     ##  Copyright (c) 2001-2005 Ralf S. Engelschall <rse@engelschall.com>      ##  Copyright (c) 2001-2006 Ralf S. Engelschall <rse@engelschall.com>
     ##      ##
   
     #   remember optional list of file(s)      #   remember optional list of file(s)

Removed from v.1.5.2.1  
changed lines
  Added in v.1.5.2.2


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org