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