Changeset 418 for trunk/icedtea-web/install-sh
- Timestamp:
- Feb 11, 2013, 8:53:47 PM (13 years ago)
- Location:
- trunk/icedtea-web
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/icedtea-web
-
Property svn:mergeinfo
set to
/branches/vendor/sourceforge/icedtea-web/1.3 merged eligible /branches/vendor/sourceforge/icedtea-web/current merged eligible
-
Property svn:mergeinfo
set to
-
trunk/icedtea-web/install-sh
r348 r418 2 2 # install - install a program, script, or datafile 3 3 4 scriptversion=20 09-04-28.21; # UTC4 scriptversion=2011-01-19.21; # UTC 5 5 6 6 # This originates from X11R5 (mit/util/scripts/install.sh), which was … … 157 157 158 158 -t) dst_arg=$2 159 # Protect names problematic for `test' and other utilities. 160 case $dst_arg in 161 -* | [=\(\)!]) dst_arg=./$dst_arg;; 162 esac 159 163 shift;; 160 164 … … 187 191 shift # arg 188 192 dst_arg=$arg 193 # Protect names problematic for `test' and other utilities. 194 case $dst_arg in 195 -* | [=\(\)!]) dst_arg=./$dst_arg;; 196 esac 189 197 done 190 198 fi … … 201 209 202 210 if test -z "$dir_arg"; then 203 trap '(exit $?); exit' 1 2 13 15 211 do_exit='(exit $ret); exit $ret' 212 trap "ret=129; $do_exit" 1 213 trap "ret=130; $do_exit" 2 214 trap "ret=141; $do_exit" 13 215 trap "ret=143; $do_exit" 15 204 216 205 217 # Set umask so as not to create temps with too-generous modes. … … 229 241 for src 230 242 do 231 # Protect names starting with `-'.243 # Protect names problematic for `test' and other utilities. 232 244 case $src in 233 -* ) src=./$src;;245 -* | [=\(\)!]) src=./$src;; 234 246 esac 235 247 … … 253 265 exit 1 254 266 fi 255 256 267 dst=$dst_arg 257 # Protect names starting with `-'.258 case $dst in259 -*) dst=./$dst;;260 esac261 268 262 269 # If destination is a directory, append the input filename; won't work … … 386 393 case $dstdir in 387 394 /*) prefix='/';; 388 -*) prefix='./';;395 [-=\(\)!]*) prefix='./';; 389 396 *) prefix='';; 390 397 esac … … 404 411 for d 405 412 do 406 test -z "$d"&& continue413 test X"$d" = X && continue 407 414 408 415 prefix=$prefix$d
Note:
See TracChangeset
for help on using the changeset viewer.