Overview
Comment: | Updated install-sh |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
d1a62f7c5dc8bf3e8b04b2af61cdb183 |
User & Date: | rkeene on 2014-07-05 00:03:53 |
Other Links: | manifest | tags |
Context
2014-07-05
| ||
00:04 | Updated MIPS test builds to be MUSL (static) based instead of uClibc check-in: 1ec331082c user: rkeene tags: trunk | |
00:03 | Updated install-sh check-in: d1a62f7c5d user: rkeene tags: trunk | |
2014-07-04
| ||
23:58 | Added Linux/MUSL support to our build platform check-in: 18d54c5945 user: rkeene tags: trunk | |
Changes
Modified kitsh/buildsrc/kitsh-0.0/install-sh from [6381bb24b0] to [06ee6336e6].
1 2 3 | #!/bin/sh # install - install a program, script, or datafile | | | 1 2 3 4 5 6 7 8 9 10 11 | #!/bin/sh # install - install a program, script, or datafile scriptversion=2011-01-19.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # |
︙ | ︙ | |||
152 153 154 155 156 157 158 159 160 161 162 163 164 165 | -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift | > > > > | 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 # Protect names problematic for `test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift |
︙ | ︙ | |||
182 183 184 185 186 187 188 189 190 191 192 193 194 195 | if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 | > > > > | 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for `test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 |
︙ | ︙ | |||
228 229 230 231 232 233 234 | fi cp_umask=$mode$u_plus_rw;; esac fi for src do | | | | 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 | fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for `test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? |
︙ | ︙ | |||
252 253 254 255 256 257 258 | exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi | < < < < < | 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 | exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 |
︙ | ︙ | |||
385 386 387 388 389 390 391 | # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; | | | | 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 | # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && |
︙ | ︙ |