[89947] trunk/dports/devel/lua-cgilua/Portfile

and.damore at macports.org and.damore at macports.org
Thu Feb 16 07:42:00 PST 2012


Revision: 89947
          http://trac.macports.org/changeset/89947
Author:   and.damore at macports.org
Date:     2012-02-16 07:42:00 -0800 (Thu, 16 Feb 2012)
Log Message:
-----------
port lua-cgilua: using tcl builtin commands to set file permissions rather than system

Modified Paths:
--------------
    trunk/dports/devel/lua-cgilua/Portfile

Modified: trunk/dports/devel/lua-cgilua/Portfile
===================================================================
--- trunk/dports/devel/lua-cgilua/Portfile	2012-02-16 13:32:31 UTC (rev 89946)
+++ trunk/dports/devel/lua-cgilua/Portfile	2012-02-16 15:42:00 UTC (rev 89947)
@@ -48,7 +48,10 @@
                     ${worksrcpath}/tests \
         ${destroot}${prefix}/share/examples/${name}
 
-    # set module files readonly
-    system -W ${destroot}${prefix}/share/lua/5.1 "chmod -x cgilua.lua cgilua/*"
+    # set module files non-executable
+    file attributes       ${destroot}${prefix}/share/lua/5.1/cgilua.lua    -permissions -x
+    foreach a_file [glob ${destroot}${prefix}/share/lua/5.1/cgilua/*.lua] {
+        file attributes ${a_file} -permissions -x
+    }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120216/75b347c4/attachment-0001.html>


More information about the macports-changes mailing list