[47713] trunk/dports/graphics

ryandesign at macports.org ryandesign at macports.org
Wed Mar 4 00:22:13 PST 2009


Revision: 47713
          http://trac.macports.org/changeset/47713
Author:   ryandesign at macports.org
Date:     2009-03-04 00:22:02 -0800 (Wed, 04 Mar 2009)
Log Message:
-----------
graphviz, graphviz-devel: improve old config file deletion

Modified Paths:
--------------
    trunk/dports/graphics/graphviz/Portfile
    trunk/dports/graphics/graphviz-devel/Portfile

Modified: trunk/dports/graphics/graphviz/Portfile
===================================================================
--- trunk/dports/graphics/graphviz/Portfile	2009-03-04 07:52:09 UTC (rev 47712)
+++ trunk/dports/graphics/graphviz/Portfile	2009-03-04 08:22:02 UTC (rev 47713)
@@ -384,10 +384,9 @@
 }
 
 pre-install {
-    # Remove old configuration file left behind by old versions of this port.
-    set config ${prefix}/lib/graphviz/config
-    if {[file exists ${config}]} {
-        delete ${config}
+    # Remove old configuration files left behind by old versions of this port.
+    foreach file [glob -nocomplain -directory ${prefix}/lib/graphviz config*] {
+        delete ${file}
     }
 }
 

Modified: trunk/dports/graphics/graphviz-devel/Portfile
===================================================================
--- trunk/dports/graphics/graphviz-devel/Portfile	2009-03-04 07:52:09 UTC (rev 47712)
+++ trunk/dports/graphics/graphviz-devel/Portfile	2009-03-04 08:22:02 UTC (rev 47713)
@@ -383,10 +383,9 @@
 }
 
 pre-install {
-    # Remove old configuration file left behind by old versions of this port.
-    set config ${prefix}/lib/graphviz/config5
-    if {[file exists ${config}]} {
-        delete ${config}
+    # Remove old configuration files left behind by old versions of this port.
+    foreach file [glob -nocomplain -directory ${prefix}/lib/graphviz config*] {
+        delete ${file}
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090304/930afa6c/attachment.html>


More information about the macports-changes mailing list