I just tried this as a first attempt towards preinst:
#!/bin/sh
set -e
for link in /etc/alternatives/libopenmpi.so /etc/alternatives/libmpi++.so
do
echo -n "Looking at $link: "
if test -e $link
then
echo -n "Yes "
else
echo -n "No "
fi
if test -f $link
then
echo -n "Yes "
else
echo -n "No "
fi
if test -h $link
then
echo -n "Yes "
else
echo -n "No "
fi
echo ""
done
exit 0
Bizarre:
[EMAIL PROTECTED]:~/src/debian/SVN/openmpi/debian> ./libopenmpi-dev.preinst
Looking at /etc/alternatives/libopenmpi.so: No No No
Looking at /etc/alternatives/libmpi++.so: No No Yes
5 times NO ? I don't believe it...
Dirk
--
Three out of two people have difficulties with fractions.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]