BSD 4 release
[unix-history] / usr / src / cmd / install.sh
CommitLineData
faffeb13
BJ
1cmd=/bin/mv
2case $1 in
3 -s ) /usr/bin/strip $2
4 shift
5 ;;
6 -c ) cmd=cp
7 shift
8esac
9
10if [ ! ${2-""} ]
11then echo 'install : no destination specified.'
12 exit 1
13fi
14
15$cmd $1 $2
16if [ -d $2 ]
17then file=$2/$1
18else file=$2
19fi
20chmod 755 $file
21chown root $file