[31487] trunk/base/portmgr/dmg/postflight

jmpp at macports.org jmpp at macports.org
Sun Nov 25 08:20:27 PST 2007


Revision: 31487
          http://trac.macosforge.org/projects/macports/changeset/31487
Author:   jmpp at macports.org
Date:     2007-11-25 08:20:26 -0800 (Sun, 25 Nov 2007)

Log Message:
-----------
Whitespace cleanups.

Modified Paths:
--------------
    trunk/base/portmgr/dmg/postflight

Modified: trunk/base/portmgr/dmg/postflight
===================================================================
--- trunk/base/portmgr/dmg/postflight	2007-11-25 16:17:19 UTC (rev 31486)
+++ trunk/base/portmgr/dmg/postflight	2007-11-25 16:20:26 UTC (rev 31487)
@@ -41,29 +41,31 @@
     echo "You already have the right PATH - l337!"
 else
     USHELL=`basename $SHELL`
-   echo "Setting the PATH of $USHELL for $USER in ${HOME:=/Users/$USER}..."
+    echo "Setting the PATH of $USHELL for $USER in ${HOME:=/Users/$USER}..."
     case $USHELL in
-      *csh)
-        /bin/cp -fp $HOME/.cshrc $HOME/.cshrc.mpsaved	# we backup the original
-        echo "#" >> $HOME/.cshrc
-        echo "# Your previous .cshrc (if any) is saved as .cshrc.mpsaved" >> $HOME/.cshrc
-        echo "# Setting the path for MacPorts." >> $HOME/.cshrc
-        echo "set path=($BINPATH $SBINPATH" '$path'")" >> $HOME/.cshrc
-        chown $USER $HOME/.cshrc
-        echo "Finished modifying $HOME/.cshrc"
-       ;;
-      *sh)
-        /bin/cp -fp $HOME/.profile $HOME/.profile.mpsaved # we backup the original
-        echo "#" >> $HOME/.profile
-        echo "# Your previous .profile  (if any) is saved as .profile.mpsaved" >> $HOME/.profile
-        echo "# Setting the path for MacPorts." >> $HOME/.profile
-        echo "export PATH=$BINPATH:$SBINPATH:\$PATH" >> $HOME/.profile
-        chown $USER $HOME/.profile
-        echo "Finished modifying $HOME/.profile"
+        *csh)
+	    # we backup the original
+            /bin/cp -fp $HOME/.cshrc $HOME/.cshrc.mpsaved
+            echo "#" >> $HOME/.cshrc
+            echo "# Your previous .cshrc (if any) is saved as .cshrc.mpsaved" >> $HOME/.cshrc
+            echo "# Setting the path for MacPorts." >> $HOME/.cshrc
+            echo "set path=($BINPATH $SBINPATH" '$path'")" >> $HOME/.cshrc
+            chown $USER $HOME/.cshrc
+            echo "Finished modifying $HOME/.cshrc"
         ;;
-      *)
-        echo "Unknown shell! Please set your own PATH manually."
+	*sh)
+	    # we backup the original
+            /bin/cp -fp $HOME/.profile $HOME/.profile.mpsaved
+            echo "#" >> $HOME/.profile
+            echo "# Your previous .profile  (if any) is saved as .profile.mpsaved" >> $HOME/.profile
+            echo "# Setting the path for MacPorts." >> $HOME/.profile
+            echo "export PATH=$BINPATH:$SBINPATH:\$PATH" >> $HOME/.profile
+            chown $USER $HOME/.profile
+            echo "Finished modifying $HOME/.profile"
         ;;
+	*)
+            echo "Unknown shell! Please set your own PATH manually."
+        ;;
     esac
 fi
 

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


More information about the macports-changes mailing list