1985-01-11 16:43:56 +00:00
|
|
|
case $# in
|
|
|
|
1) DEST="$1" ;;
|
|
|
|
2) DEST="$2" ;;
|
|
|
|
*) echo $0 [source] destination ;;
|
|
|
|
esac
|
1984-11-05 11:55:15 +00:00
|
|
|
MACH=`(cd .. ; basename \`pwd\`)`
|
1985-01-11 16:43:56 +00:00
|
|
|
mkdir ../../../lib/$MACH >/dev/null 2>&1
|
|
|
|
if cp "$1" ../../../lib/${MACH}/$DEST >/dev/null 2>&1 ||
|
|
|
|
{ rm -f ../../../lib/${MACH}/$DEST >/dev/null 2>&1 &&
|
|
|
|
cp "$1" ../../../lib/${MACH}/$DEST >/dev/null 2>&1
|
1984-11-06 10:02:25 +00:00
|
|
|
}
|
1984-11-05 11:55:15 +00:00
|
|
|
then
|
1985-01-11 16:43:56 +00:00
|
|
|
if (ar t ../../../lib/${MACH}/$DEST | grep __.SYMDEF ) >/dev/null 2>&1
|
|
|
|
then
|
|
|
|
ranlib ../../../lib/${MACH}/$DEST
|
|
|
|
fi
|
1984-11-05 11:55:15 +00:00
|
|
|
exit 0
|
1984-11-06 10:02:25 +00:00
|
|
|
else
|
1985-01-11 16:43:56 +00:00
|
|
|
echo Sorry, can not create "lib/${MACH}/$DEST".
|
1984-11-05 11:55:15 +00:00
|
|
|
fi
|