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