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

jmpp at macports.org jmpp at macports.org
Tue Dec 11 16:24:47 PST 2007


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

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

How obvious it is that I'm not a tcsh user (and how aparent it is that practically no one reading this, if anyone :P,
is a tcsh user either!): output our tcsh settings to a ~/.login file and make those settings environment tweaking ones
(setenv, PATH, MANPATH), per recommendation of Wilfredo Sanchez again. This correcs another bunch of tcsh specific bugs.

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-11 23:26:23 UTC (rev 31917)
+++ branches/release_1_6/base/portmgr/dmg/postflight	2007-12-12 00:24:45 UTC (rev 31918)
@@ -42,7 +42,7 @@
 }
 case "$USHELL" in
     tcsh)
-        CONF_FILE=tcshrc
+        CONF_FILE=login
         LOGIN_FLAG=""
         ;;
     bash)
@@ -74,14 +74,14 @@
             if [ "$CONF_FILE" == "profile" ]; then
                 echo "export PATH=$BINPATH:$SBINPATH:\$PATH" >> $HOME/.$CONF_FILE
             elif [ "$CONF_FILE" == "tcshrc" ]; then
-                echo "set path=($BINPATH $SBINPATH" '$path'")" >> $HOME/.$CONF_FILE
+                echo "setenv PATH $BINPATH $SBINPATH:\$PATH" >> $HOME/.$CONF_FILE
             fi
             ;;
         MANPATH)
             if [ "$CONF_FILE" == "profile" ]; then
                 echo "export MANPATH=$MANPAGES:\$MANPATH" >> $HOME/.$CONF_FILE
             elif [ "$CONF_FILE" == "tcshrc" ]; then
-                echo "set manpath=($MANPAGES" '$manpath'")" >> $HOME/.$CONF_FILE
+                echo "setenv MANPATH $MANPAGES:\$MANPATH" >> $HOME/.$CONF_FILE
             fi
         ;;
     esac

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


More information about the macports-changes mailing list