[32632] branches/release_1_6/base/portmgr/dmg/postflight
jmpp at macports.org
jmpp at macports.org
Wed Jan 9 21:59:48 PST 2008
Revision: 32632
http://trac.macosforge.org/projects/macports/changeset/32632
Author: jmpp at macports.org
Date: 2008-01-09 21:59:48 -0800 (Wed, 09 Jan 2008)
Log Message:
-----------
Move the definition of the 'update_macports' command to the top of the script, so that it is found if we for some reason fail
to determine the shell through the basename(1) command.
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 2008-01-10 05:56:22 UTC (rev 32631)
+++ branches/release_1_6/base/portmgr/dmg/postflight 2008-01-10 05:59:48 UTC (rev 32632)
@@ -32,6 +32,19 @@
# $Id$
+# Command to update the MacPorts installation through "selfupdate":
+function update_macports {
+ export PATH=$BINPATH:$PATH
+ echo "Synchronizing the MacPorts installation with the project's rsync server..."
+ if ! port -v selfupdate; then
+ echo "An attempt to synchronize your recent MacPorts installation with the project's rsync server failed!"
+ echo "Please run 'port -d selfupdate' manually to find out the cause of the error."
+ else
+ echo "Successful!"
+ fi
+}
+
+
# Abstraction variables:
PREFIX=/opt/local
BINPATH=$PREFIX/bin
@@ -86,19 +99,7 @@
echo -e "# Finished adapting your $1 environment variable for use with MacPorts.\n" >> $HOME/.$CONF_FILE
}
-# Command to update the MacPorts installation through "selfupdate":
-function update_macports {
- export PATH=$BINPATH:$PATH
- echo "Synchronizing the MacPorts installation with the project's rsync server..."
- if ! port -v selfupdate; then
- echo "An attempt to synchronize your recent MacPorts installation with the project's rsync server failed!"
- echo "Please run 'port -d selfupdate' manually to find out the cause of the error."
- else
- echo "Successful!"
- fi
-}
-
# Determine the user's shell, in order to choose an appropriate configuration file we'll be tweaking.
# Exit nicely if the shell is any other than bash or tcsh, as that's considered non-standard.
case "$USHELL" in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080109/429c7c41/attachment.html
More information about the macports-changes
mailing list