Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

56
cde/util/scripts/lninst.sh Executable file
View File

@@ -0,0 +1,56 @@
#!/bin/sh
# $XConsortium: lninst.sh /main/2 1995/07/19 18:05:50 drk $
#
# 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