[39736] trunk/dports/sysutils/cdargs/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Sep 1 19:10:45 PDT 2008


Revision: 39736
          http://trac.macosforge.org/projects/macports/changeset/39736
Author:   ryandesign at macports.org
Date:     2008-09-01 19:10:43 -0700 (Mon, 01 Sep 2008)
Log Message:
-----------
cdargs: print instructions for use in post-activate, not in long_description

Modified Paths:
--------------
    trunk/dports/sysutils/cdargs/Portfile

Modified: trunk/dports/sysutils/cdargs/Portfile
===================================================================
--- trunk/dports/sysutils/cdargs/Portfile	2008-09-02 00:36:03 UTC (rev 39735)
+++ trunk/dports/sysutils/cdargs/Portfile	2008-09-02 02:10:43 UTC (rev 39736)
@@ -14,10 +14,7 @@
     bookmarks and a browser to it. It enables you to move to a very \
     distant place in the file-system with just a few keystrokes. \
     This is the kind of thing that power shell users invent when even \
-    the almighty and wonderful TAB-completion is too much typing. \
-    \
-    Note that you should source the ${prefix}/etc/profile.d/cdargs-bash.sh \
-    file in your shell's startup script file.
+    the almighty and wonderful TAB-completion is too much typing.
 
 homepage        http://www.skamphausen.de/cgi-bin/ska/CDargs
 
@@ -40,5 +37,23 @@
         ${destroot}${prefix}/etc/profile.d
 }
 
+post-activate {
+    ui_msg "
+To use ${name}, you need to source it from your shell's startup file.
+
+If you're using bash, add these lines to your bash startup file:
+
+    if \[ -f ${prefix}/etc/profile.d/cdargs-bash.sh \]; then
+        source ${prefix}/etc/profile.d/cdargs-bash.sh
+    fi
+
+If you're using tcsh, add these lines to your tcsh startup file:
+
+    if ( -f ${prefix}/etc/profile.d/cdargs-tcsh.csh ) then
+        source ${prefix}/etc/profile.d/cdargs-tcsh.csh
+    endif
+"
+}
+
 livecheck.url   [lindex ${master_sites} 0]?N=D
 livecheck.regex ${name}-(\[0-9.\]+)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080901/88d5b81c/attachment-0001.html 


More information about the macports-changes mailing list