/[svn]/ircd-hybrid-8/install-sh
ViewVC logotype

Diff of /ircd-hybrid-8/install-sh

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

revision 1257 by michael, Sun Jan 15 06:28:46 2012 UTC revision 1375 by michael, Fri Apr 27 08:01:46 2012 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2  # install - install a program, script, or datafile  # install - install a program, script, or datafile
3    
4  scriptversion=2011-01-19.21; # UTC  scriptversion=2011-11-20.07; # UTC
5    
6  # This originates from X11R5 (mit/util/scripts/install.sh), which was  # This originates from X11R5 (mit/util/scripts/install.sh), which was
7  # later released in X11R6 (xc/config/util/install.sh) with the  # later released in X11R6 (xc/config/util/install.sh) with the
# Line 35  scriptversion=2011-01-19.21; # UTC Line 35  scriptversion=2011-01-19.21; # UTC
35  # FSF changes to this file are in the public domain.  # FSF changes to this file are in the public domain.
36  #  #
37  # Calling this script install-sh is preferred over install.sh, to prevent  # Calling this script install-sh is preferred over install.sh, to prevent
38  # `make' implicit rules from creating a file called install from it  # 'make' implicit rules from creating a file called install from it
39  # when there is no Makefile.  # when there is no Makefile.
40  #  #
41  # This script is compatible with the BSD install script, but was written  # This script is compatible with the BSD install script, but was written
# Line 156  while test $# -ne 0; do Line 156  while test $# -ne 0; do
156      -s) stripcmd=$stripprog;;      -s) stripcmd=$stripprog;;
157    
158      -t) dst_arg=$2      -t) dst_arg=$2
159          # Protect names problematic for `test' and other utilities.          # Protect names problematic for 'test' and other utilities.
160          case $dst_arg in          case $dst_arg in
161            -* | [=\(\)!]) dst_arg=./$dst_arg;;            -* | [=\(\)!]) dst_arg=./$dst_arg;;
162          esac          esac
# Line 190  if test $# -ne 0 && test -z "$dir_arg$ds Line 190  if test $# -ne 0 && test -z "$dir_arg$ds
190      fi      fi
191      shift # arg      shift # arg
192      dst_arg=$arg      dst_arg=$arg
193      # Protect names problematic for `test' and other utilities.      # Protect names problematic for 'test' and other utilities.
194      case $dst_arg in      case $dst_arg in
195        -* | [=\(\)!]) dst_arg=./$dst_arg;;        -* | [=\(\)!]) dst_arg=./$dst_arg;;
196      esac      esac
# Line 202  if test $# -eq 0; then Line 202  if test $# -eq 0; then
202      echo "$0: no input file specified." >&2      echo "$0: no input file specified." >&2
203      exit 1      exit 1
204    fi    fi
205    # It's OK to call `install-sh -d' without argument.    # It's OK to call 'install-sh -d' without argument.
206    # This can happen when creating conditional directories.    # This can happen when creating conditional directories.
207    exit 0    exit 0
208  fi  fi
# Line 240  fi Line 240  fi
240    
241  for src  for src
242  do  do
243    # Protect names problematic for `test' and other utilities.    # Protect names problematic for 'test' and other utilities.
244    case $src in    case $src in
245      -* | [=\(\)!]) src=./$src;;      -* | [=\(\)!]) src=./$src;;
246    esac    esac
# Line 354  do Line 354  do
354                if test -z "$dir_arg" || {                if test -z "$dir_arg" || {
355                     # Check for POSIX incompatibilities with -m.                     # Check for POSIX incompatibilities with -m.
356                     # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or                     # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
357                     # other-writeable bit of parent directory when it shouldn't.                     # other-writable bit of parent directory when it shouldn't.
358                     # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.                     # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
359                     ls_ld_tmpdir=`ls -ld "$tmpdir"`                     ls_ld_tmpdir=`ls -ld "$tmpdir"`
360                     case $ls_ld_tmpdir in                     case $ls_ld_tmpdir in

Legend:
Removed from v.1257  
changed lines
  Added in v.1375

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26