projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
23665fe
)
Bell 32V development
author
Tom London
<tbl@research.uucp>
Mon, 26 Mar 1979 09:09:10 +0000
(
04:09
-0500)
committer
Tom 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]
patch
|
blob
diff --git a/usr/src/cmd/install.sh
b/usr/src/cmd/install.sh
new file mode 100755
(executable)
index 0000000..
8e8bfb1
--- /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