[31921] branches/release_1_6/base/portmgr/dmg/postflight

jmpp at macports.org jmpp at macports.org
Tue Dec 11 16:46:58 PST 2007


Revision: 31921
          http://trac.macosforge.org/projects/macports/changeset/31921
Author:   jmpp at macports.org
Date:     2007-12-11 16:46:57 -0800 (Tue, 11 Dec 2007)

Log Message:
-----------

Meh, nothing like a messed up environment to remind me that tcsh does not allow running a login,
non-interactive shell. Revert part of r31918 and switch back to a tcshrc file for output of our
tcsh specific settings, since this script will just *not* read ~/.login (and therefore anything that's
in that file will simply be ignored and we will not be able to properly test and setup our environment).

Fix a bug in writing the setenv style PATH variable while at it: no space between $BINPATH and $SBINPATH.

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-12 00:38:00 UTC (rev 31920)
+++ branches/release_1_6/base/portmgr/dmg/postflight	2007-12-12 00:46:57 UTC (rev 31921)
@@ -42,7 +42,7 @@
 }
 case "$USHELL" in
     tcsh)
-        CONF_FILE=login
+        CONF_FILE=tcshrc
         LOGIN_FLAG=""
         ;;
     bash)
@@ -74,7 +74,7 @@
             if [ "$CONF_FILE" == "profile" ]; then
                 echo "export PATH=$BINPATH:$SBINPATH:\$PATH" >> $HOME/.$CONF_FILE
             elif [ "$CONF_FILE" == "tcshrc" ]; then
-                echo "setenv PATH $BINPATH $SBINPATH:\$PATH" >> $HOME/.$CONF_FILE
+                echo "setenv PATH $BINPATH:$SBINPATH:\$PATH" >> $HOME/.$CONF_FILE
             fi
             ;;
         MANPATH)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071211/a6b1d044/attachment.html


More information about the macports-changes mailing list