[71326] trunk/dports/games/alienarena/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Sep 8 22:13:52 PDT 2010


Revision: 71326
          http://trac.macports.org/changeset/71326
Author:   ryandesign at macports.org
Date:     2010-09-08 22:13:49 -0700 (Wed, 08 Sep 2010)
Log Message:
-----------
alienarena: oh, just fix the line endings in all the files

Modified Paths:
--------------
    trunk/dports/games/alienarena/Portfile

Modified: trunk/dports/games/alienarena/Portfile
===================================================================
--- trunk/dports/games/alienarena/Portfile	2010-09-08 22:05:51 UTC (rev 71325)
+++ trunk/dports/games/alienarena/Portfile	2010-09-09 05:13:49 UTC (rev 71326)
@@ -64,10 +64,15 @@
 
 post-extract {
     # DOS to UNIX line endings so we can patch properly.
-    reinplace "s|\r||g" ${patch.dir}/game/q_shared.h \
-                        ${patch.dir}/qcommon/common.c \
-                        ${patch.dir}/ref_gl/r_main.c \
-                        ${patch.dir}/ref_gl/r_model.h
+    fs-traverse file ${patch.dir} {
+        switch [file extension ${file}] {
+            .c -
+            .cpp -
+            .h {
+                reinplace "s|\r||g" ${file}
+            }
+        }
+    }
 }
 
 patchfiles              patch-game-q_shared.h.diff \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100908/39c672e6/attachment.html>


More information about the macports-changes mailing list