4
# syminst - install with a symbolic link back to the build tree
7
# set DOITPROG to echo to test this script
12
# put in absolute paths if you don't have them in your path; or use env. vars.
14
lnprog="${LNPROG-ln -s}"
23
while [ x"$1" != x ]; do
43
-DIR) srcdir=`echo $2 | sed 's;/\./;/;g'`/
61
echo "syminst: no input file specified"
67
echo "syminst: no destination specified"
72
# if destination is a directory, append the input filename; if your system
73
# does not like double slashes in filenames, you may need to add some logic
77
dst="$dst"/`basename $src`
85
# get rid of the old one and mode the new one in
88
$doit $instcmd $srcdir$src $dst