incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1230971 - /incubator/ooo/trunk/main/solenv/bin/getcsym.awk
Date Fri, 13 Jan 2012 09:59:03 GMT
Author: af
Date: Fri Jan 13 09:59:03 2012
New Revision: 1230971

URL: http://svn.apache.org/viewvc?rev=1230971&view=rev
Log:
Fixed getcsym.awk to handle #-comments that contain special regexp characters.

Modified:
    incubator/ooo/trunk/main/solenv/bin/getcsym.awk

Modified: incubator/ooo/trunk/main/solenv/bin/getcsym.awk
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/solenv/bin/getcsym.awk?rev=1230971&r1=1230970&r2=1230971&view=diff
==============================================================================
--- incubator/ooo/trunk/main/solenv/bin/getcsym.awk (original)
+++ incubator/ooo/trunk/main/solenv/bin/getcsym.awk Fri Jan 13 09:59:03 2012
@@ -20,7 +20,7 @@
 #**************************************************************
 
 BEGIN { global_found = "false" }
-/[ \t]*#/ { sub( substr( $0, index($0, "#")),"" ) }
+/[ \t]*#/ { sub("#.*", "") }
 /[ \t]*local:/ { global_found = "false" }
 /[ \t]*}/ { global_found = "false" }
 /^[ \t]*$/ { next }



Mime
View raw message