BSD 3 development
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Fri, 23 Nov 1979 11:31:41 +0000 (03:31 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Fri, 23 Nov 1979 11:31:41 +0000 (03:31 -0800)
Work on file usr/src/cmd/install.sh

Synthesized-from: 3bsd

usr/src/cmd/install.sh [new file with mode: 0755]

diff --git a/usr/src/cmd/install.sh b/usr/src/cmd/install.sh
new file mode 100755 (executable)
index 0000000..8e8bfb1
--- /dev/null
@@ -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