1
0
forked from ports/contrib

gcc34: minor improvements to post-install

This commit is contained in:
Danny Rawlins 2008-05-08 22:00:04 +10:00
parent 6ccb69e9e8
commit d5ce0df99d

View File

@ -20,14 +20,14 @@ symlink() {
NOT_INSTALLED='yes'
fi
done
if [ $NOT_INSTALLED ]; then
if [ "$NOT_INSTALLED" ]; then
echo "post-install: in directory '$DIRECTORY'."
fi
for c in $SYMLINKS; do
if [ ! -e "$DIRECTORY/$c" ]; then
ln -s "../../bin/$BASENAME" "$c"
if [ $? -gt 0 ]; then
echo "post-install: error creating symlink '../../bin/$BASENAME $c'."
echo "post-install: error creating symlink '../../bin/$BASENAME -> $c'."
exit 1
else
echo "post-install: create symlink '../../bin/$BASENAME -> $c'."