Top 10k strings from install-sh
in <root> / bin / pc / Emulators / fuse-hc2000-hacks.7z / src / fuse /
Back to the directory listing
2 u_plus_rw= 2 2>/dev/null` && 2 if test -n "$dir_arg"; then 2 if test -z "$stripcmd"; then 2 exit 1 2 else 1 while test $# -ne 0; do 1 umask=`umask` 1 umask $mkdir_umask && 1 u_plus_rw=,u+rw 1 u_plus_rw='% 200' 1 test -z "$d" && continue 1 stripprog=${STRIPPROG-strip} 1 scriptversion=2009-04-28.21; # UTC 1 rmprog=${RMPROG-rm} 1 rmcmd="$rmprog -f" 1 prefix=$prefix/ 1 prefix=$prefix$d 1 posix_mkdir=false 1 posix_mkdir= 1 posix_glob='?' 1 obsolete_mkdir_used=true 1 no_target_directory= 1 mvprog=${MVPROG-mv} 1 mvcmd=$mvprog 1 mkdirprog=${MKDIRPROG-mkdir} 1 initialize_posix_glob=' 1 if test -z "$doit"; then 1 if test -z "$dir_arg"; then 1 if test -n "$dir_arg"; then 1 if test -d "$prefix"; then 1 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then 1 if test $# -eq 0; then 1 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 1 echo X"$dst" | 1 echo "$0: invalid option: $1" >&2 1 echo "$0: $dst_arg: Is a directory" >&2 1 doit=${DOITPROG-} 1 cpprog=${CPPROG-cp} 1 copy_on_change=false 1 cmpprog=${CMPPROG-cmp} 1 chownprog=${CHOWNPROG-chown} 1 chmodprog=${CHMODPROG-chmod} 1 chmodcmd=$chmodprog 1 chgrpprog=${CHGRPPROG-chgrp} 1 case $umask in 1 case $stripcmd.$umask in 1 case $mode in 1 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE 1 In the 4th, create DIRECTORIES. 1 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. 1 In the 1st form, copy SRCFILE to DSTFILE. 1 Environment variables override the default commands: 1 /*) prefix='/';; 1 -*) prefix='./';; 1 *) prefix='';; 1 (umask $mkdir_umask && 1 (dirname "$dst") 2>/dev/null || 1 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" 1 $doit $mvcmd "$dsttmp" "$dst" 1 # when there is no Makefile. 1 # time-stamp-time-zone: "UTC" 1 # time-stamp-start: "scriptversion=" 1 # time-stamp-format: "%:y-%02m-%02d.%02H" 1 # time-stamp-end: "; # UTC" 1 # systems and the destination file might be busy for other 1 # set DOITPROG to echo to test this script 1 # sell copies of the Software, and to permit persons to whom the Software is 1 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 1 # reasons. In this case, the final cleanup might fail but the new 1 # or use environment vars. 1 # of this software and associated documentation files (the "Software"), to 1 # later released in X11R6 (xc/config/util/install.sh) with the 1 # install - install a program, script, or datafile 1 # ings in this Software without prior written authorization from the X Consor- 1 # furnished to do so, subject to the following conditions: 1 # from scratch. 1 # following copyright and license. 1 # file should still install successfully. 1 # eval: (add-hook 'write-file-hooks 'time-stamp) 1 # deal in the Software without restriction, including without limitation the 1 # be used in advertising or otherwise to promote the sale, use or other deal- 1 # all copies or substantial portions of the Software. 1 # `make' implicit rules from creating a file called install from it 1 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 1 # With -d, create the new directory with the user-specified mode. 1 # We try this two ways since rm can't unlink itself on some 1 # This script is compatible with the BSD install script, but was written 1 # This originates from X11R5 (mit/util/scripts/install.sh), which was 1 # This is like FreeBSD 'install' as of 1997-10-28. 1 # The above copyright notice and this permission notice shall be included in 1 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 1 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1 # Put in absolute file names if you don't have them in your path; 1 # Permission is hereby granted, free of charge, to any person obtaining a copy 1 # Otherwise, rely on $mkdir_umask. 1 # Now rename the file to the real destination. 1 # Now remove or move aside any old file at destination location. 1 # Local variables: 1 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1 # FSF changes to this file are in the public domain. 1 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1 # Except as contained in this notice, the name of the X Consortium shall not 1 # Don't use :- since 4.3BSD and earlier shells don't like it. 1 # Don't fail if two instances are running concurrently. 1 # Desired mode of installed file. 1 # Create intermediate dirs using mode 755 as modified by the umask. 1 # Copyright (C) 1994 X Consortium 1 # Calling this script install-sh is preferred over install.sh, to prevent 1 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- 1 s/.*/./; q' 1 eval "\$doit_exec \$mkdirprog $prefixes") || 1 /^X\(\/\/\)[^/].*/{ 1 /^X\(\/\/\)$/{ 1 /^X\(\/\).*/{ 1 | *'*'* | *'?'* | *'['*) 1 { echo "$0: cannot unlink or rename $dst" >&2 1 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && 1 trap '(exit $?); exit' 1 2 13 15 1 test -d "$dstdir" || exit 1 1 test "$posix_glob" != "?" || { 1 test ! -f "$dst" || 1 prefixes= 1 obsolete_mkdir_used=false 1 mkdir_mode=-m$mode 1 mkdir_mode= 1 if test -z "$dir_arg"; then 1 if test $dstdir_status != 0; then 1 if $posix_mkdir; then 1 doit_exec=exec 1 doit_exec=$doit 1 case $src in 1 case $mode in 1 case $1 in 1 RMPROG STRIPPROG 1 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG 1 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; 1 -t DIRECTORY install into DIRECTORY. 1 -s $stripprog installed files. 1 -o USER $chownprog installed files to USER. 1 -m MODE $chmodprog installed files to MODE. 1 -g GROUP $chgrpprog installed files to GROUP. 1 -d create directories instead of installing files. 1 -c (ignored) 1 -T report an error if DSTFILE is a directory. 1 -C install only if different (preserve the last data modification time) 1 *[2367][2367]) mkdir_umask=$umask;; 1 *[123567][0-7][0-7]) 1 *) mkdir_umask=$umask,go-w;; 1 *' '* | *' 1 $doit $rmcmd -f "$dst" 2>/dev/null || 1 # When -t is used, the destination is already specified. 1 # When -d is used, all remaining arguments are directories to create. 1 # This can happen when creating conditional directories. 1 # Set umask so as not to create temps with too-generous modes. 1 # Protect names starting with `-'. 1 # Otherwise, the last argument is the destination. Remove it from $@. 1 # Optimize common cases. 1 # It's OK to call `install-sh -d' without argument. 1 # However, 'strip' requires both read and write access to temps. 1 or: $0 [OPTION]... SRCFILES... DIRECTORY 1 or: $0 [OPTION]... -t DIRECTORY SRCFILES... 1 or: $0 [OPTION]... -d DIRECTORIES... 1 ls_ld_tmpdir=`ls -ld "$tmpdir"` 1 esac && 1 case $ls_ld_tmpdir in 1 $mkdirprog -m$different_mode -p -- "$tmpdir" && { 1 # other-writeable bit of parent directory when it shouldn't. 1 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or 1 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. 1 # Check for POSIX incompatibilities with -m. 1 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && 1 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && 1 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && 1 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && 1 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && 1 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && 1 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || 1 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } 1 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 1 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 1 trap '' 0;; 1 trap '' 0 1 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 1 then : 1 test -d "$prefix" || exit 1 1 test -d "$dstdir" 1 shift # arg 1 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1 rmtmp=$dstdir/_rm.$$_ 1 prefixes="$prefixes '$qprefix'" 1 mkdir_umask=`expr $umask + 22 \ 1 if test -z "$dst_arg"; then 1 if test -n "$dst_arg"; then 1 if test -d "$dst"; then 1 if test ! -f "$src" && test ! -d "$src"; then 1 if (umask $mkdir_umask && 1 if (set -f) 2>/dev/null; then 1 if $copy_on_change && 1 fi || exit 1 1 exit 1;; 1 exit 1 1 echo "$0: no input file specified." >&2 1 echo "$0: invalid mode: $mode" >&2 1 dsttmp=$dstdir/_inst.$$_ 1 dstdir_status=$? 1 dstdir=$dst 1 dst_arg=$arg 1 dst=$src 1 dst=$dst_arg 1 case $prefix in 1 case $posix_mkdir in 1 case $dst in 1 -t) dst_arg=$2 1 -s) stripcmd=$stripprog;; 1 -o) chowncmd="$chownprog $2" 1 -m) mode=$2 1 -g) chgrpcmd="$chgrpprog $2" 1 -d) dir_arg=true;; 1 -c) ;; 1 -T) no_target_directory=true;; 1 -C) copy_on_change=true;; 1 --version) echo "$0 $scriptversion"; exit $?;; 1 --help) echo "$usage"; exit $?;; 1 -*) src=./$src;; 1 *[0-7]) 1 *755) cp_umask=22;; 1 *644) cp_umask=133;; 1 *) break;; 1 (umask=$mkdir_umask && 1 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && 1 (exit 1); exit 1 1 # might cause directories to be created, which would be especially bad 1 # is incompatible with FreeBSD 'install' when (umask & 300) != 0. 1 # ignore errors from any of these, just make sure not to ignore 1 # if double slashes aren't ignored. 1 # if $src (and thus $dsttmp) contains '*'. 1 # errors from the above "$doit $cpprog $src $dsttmp" command. 1 # and set any options; do chmod last to preserve setuid bits. 1 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command 1 # Trap to clean up those temp files at exit. 1 # Protect names starting with `-'. 1 # POSIX mkdir -p sets u+wx bits regardless of umask, which 1 # Optimize common cases. 1 # Make a couple of temp file names in the proper directory. 1 # If destination is a directory, append the input filename; won't work 1 # If any of these fail, we abort the whole thing. If we want to 1 # If -C, don't bother to copy if it wouldn't change the file. 1 # Don't fail if two instances are running concurrently. 1 # Copy the file name to the temp name. 1 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" 1 ls_ld_tmpdir_1=`ls -ld "$tmpdir"` 1 d????-?r-*) different_mode=700;; 1 d????-?--*) different_mode=755;; 1 X"$dst" : 'X\(/\)' \| . 2>/dev/null || 1 X"$dst" : 'X\(//\)[^/]' \| \ 1 X"$dst" : 'X\(//\)$' \| \ 1 --version display version info and exit. 1 --help display this help and exit. 1 *) false;; 1 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break 1 then posix_mkdir=: 1 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 1 test -d "$dstdir" 1 shift # fnord 1 shift 1 set fnord $dstdir 1 set fnord "$@" "$dst_arg" 1 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null 1 rmdir "$tmpdir/d" "$tmpdir" 1 rm -f "$dsttmp" 1 prefixes= 1 posix_glob=: 1 posix_glob= 1 oIFS=$IFS 1 if test -z "$dir_arg" || { 1 if test -n "$prefixes"; then 1 if test -n "$no_target_directory"; then 1 for d 1 eval "$initialize_posix_glob" 1 esac 1 echo "$0: no destination specified." >&2 1 echo "$0: $src does not exist." >&2 1 dstdir_status=0 1 dstdir_status=$? 1 dstdir=` 1 dstdir=$dst 1 dst=$dstdir/`basename "$src"` 1 done 1 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; 1 cp_umask=$mode$u_plus_rw;; 1 case $dstdir in 1 IFS=/ 1 IFS=$oIFS 1 -*) dst=./$dst;; 1 - $umask % 100 % 40 + $umask % 20 \ 1 - $umask % 10 % 4 + $umask % 2 1 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; 1 *) qprefix=$prefix;; 1 $posix_mkdir && ( 1 $posix_glob set -f 1 $posix_glob set +f 1 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || 1 # to itself, or perhaps because mv is so ancient that it does not 1 # support -f. 1 # or it failed possibly due to a race condition. Create the 1 # directory the slow way, step by step, checking for races as we go. 1 # The umask is ridiculous, or mkdir does not conform to POSIX, 1 # The rename failed, perhaps because mv can't rename something else 1 # Rename the file to the real destination. 1 # Remove any dirs left behind by ancient mkdir implementations. 1 # Prefer dirname, but fall back on a substitute if dirname fails. 1 # $@ is not empty: it contains at least $arg. 1 test "$old" = "$new" && 1 set X $old && old=:$2:$4:$5:$6 && 1 set X $new && new=:$2:$4:$5:$6 && 1 old=`LC_ALL=C ls -dlL "$dst" 1 new=`LC_ALL=C ls -dlL "$dsttmp" 1 eval "$initialize_posix_glob" && 1 $posix_glob set -f && 1 $posix_glob set +f && 1 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1