Modified: branches/release_1_6/base/portmgr/dmg/postflight (31682 => 31683)
--- branches/release_1_6/base/portmgr/dmg/postflight 2007-12-03 02:19:51 UTC (rev 31682)
+++ branches/release_1_6/base/portmgr/dmg/postflight 2007-12-03 02:37:08 UTC (rev 31683)
@@ -30,15 +30,15 @@
# postflight
# $Id$
-echo ""
-echo "Checking the PATH variable for $USER..."
-echo ""
BINPATH=/opt/local/bin
SBINPATH=/opt/local/sbin
+
+echo -e "\nChecking the PATH variable for $USER...\n"
+
if $SHELL -c "/usr/bin/printenv PATH" | grep -c $BINPATH > /dev/null; then
- echo "You already have the right PATH - l337!"
+ echo "You already have the right PATH!"
else
USHELL=`basename $SHELL`
echo "Setting the PATH of $USHELL for $USER in ${HOME:=/Users/$USER}..."
@@ -69,24 +69,18 @@
esac
fi
-export PATH=$BINPATH:$PATH
-# run selfupdate
-
-echo""
-echo "Selfupdating The MacPorts system ..."
-echo ""
-
+# Run selfupdate:
+export PATH=$BINPATH:$PATH
+echo -e "\nSelfupdating The MacPorts system...\n"
port -d selfupdate
if [ $? != 0 ]; then
echo "An attempt to synchronize your recent MacPorts installation with the rsync server failed, please run 'port -d selfupdate' manually to find out the cause of the error."
- exit
+ exit 1
fi
-# done !!
-echo ""
-echo "You have succesfully installed the MacPorts system."
-echo ""
-echo "Launch a terminal and try it out !!"
-echo "Read the port manual page for help."
-echo ""
+
+# Postflight script is done with its job!
+echo -e "\nYou have succesfully installed the MacPorts system.\n"
+echo "Launch a terminal and try it out!"
+echo -e "Read the port manual page for help.\n"