[82253] trunk/dports/sysutils/bash-completion/Portfile

blair at macports.org blair at macports.org
Thu Aug 11 11:53:36 PDT 2011


Revision: 82253
          http://trac.macports.org/changeset/82253
Author:   blair at macports.org
Date:     2011-08-11 11:53:35 -0700 (Thu, 11 Aug 2011)
Log Message:
-----------
bash-completion: maintainer timeout on #30664; update sourcing instructions.

Modified Paths:
--------------
    trunk/dports/sysutils/bash-completion/Portfile

Modified: trunk/dports/sysutils/bash-completion/Portfile
===================================================================
--- trunk/dports/sysutils/bash-completion/Portfile	2011-08-11 18:40:08 UTC (rev 82252)
+++ trunk/dports/sysutils/bash-completion/Portfile	2011-08-11 18:53:35 UTC (rev 82253)
@@ -37,8 +37,13 @@
 
 notes "
 To use bash_completion, add the following lines at the end of your .bash_profile:
-  if \[ -f ${prefix}/etc/bash_completion ]; then
-      . ${prefix}/etc/bash_completion
+  if \[ -d $prefix/etc/profile.d ]; then
+    for i in $prefix/etc/profile.d/*.sh; do
+      if \[ -r \$i ]; then
+        . \$i
+      fi
+    done
+    unset i
   fi
 "
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110811/ade1efbc/attachment.html>


More information about the macports-changes mailing list