Bell 32V development
authorTom London <tbl@research.uucp>
Mon, 26 Mar 1979 09:09:10 +0000 (04:09 -0500)
committerTom London <tbl@research.uucp>
Mon, 26 Mar 1979 09:09:10 +0000 (04:09 -0500)
Work on file usr/src/cmd/install.sh

Co-Authored-By: John Reiser <jfr@research.uucp>
Synthesized-from: 32v

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