blob: efdff7970ec5c3df7aab89b0894219e51ff5fdd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#!/bin/sh
#
# This accepts bsd-style install arguments and simply makes symbolic links.
#
flags=""
dst=""
src=""
dostrip=""
while [ x$1 != x ]; do
case $1 in
-c) shift
continue;;
-[mog]) flags="$flags $1 $2 "
shift
shift
continue;;
-s) dostrip="strip"
shift
continue;;
*) if [ x$src = x ]
then
src=$1
else
dst=$1
fi
shift
continue;;
esac
done
if [ x$src = x ]
then
echo "syminst: no input file specified"
exit 1
fi
if [ x$dst = x ]
then
echo "syminst: no destination specified"
exit 1
fi
if [ -d $dst ]; then
rm -f $dst/`basename $src`
else
rm -f $dst
fi
ln -s `pwd`/$src $dst
|