Start development on BSD 4
[unix-history] / .ref-5cb41021d721f4e0ac572d592613f963e495d1ff / .ref-BSD-3 / usr / bin / install
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