From: Bill Joy Date: Fri, 23 Nov 1979 11:31:41 +0000 (-0800) Subject: BSD 3 development X-Git-Tag: BSD-3~668 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/b2a72c88abe1f394c2a75ed14a2d437050186244 BSD 3 development Work on file usr/src/cmd/install.sh Synthesized-from: 3bsd --- diff --git a/usr/src/cmd/install.sh b/usr/src/cmd/install.sh new file mode 100755 index 0000000000..8e8bfb151c --- /dev/null +++ b/usr/src/cmd/install.sh @@ -0,0 +1,21 @@ +cmd=/bin/mv +case $1 in + -s ) /usr/bin/strip $2 + shift + ;; + -c ) cmd=cp + shift +esac + +if [ ! ${2-""} ] +then echo 'install : no destination specified.' + exit 1 +fi + +$cmd $1 $2 +if [ -d $2 ] +then file=$2/$1 +else file=$2 +fi +chmod 755 $file +chown root $file