[31683] branches/release_1_6/base/portmgr/dmg/postflight
jmpp at macports.org
jmpp at macports.org
Sun Dec 2 18:37:16 PST 2007
Revision: 31683
http://trac.macosforge.org/projects/macports/changeset/31683
Author: jmpp at macports.org
Date: 2007-12-02 18:37:08 -0800 (Sun, 02 Dec 2007)
Log Message:
-----------
Manually merge cosmetic changes into the postflight script in the release_1_6 branch.
Modified Paths:
--------------
branches/release_1_6/base/portmgr/dmg/postflight
Modified: branches/release_1_6/base/portmgr/dmg/postflight
===================================================================
--- 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071202/cf34b3da/attachment.html
More information about the macports-changes
mailing list