You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by af...@apache.org on 2012/01/13 10:59:03 UTC

svn commit: r1230971 - /incubator/ooo/trunk/main/solenv/bin/getcsym.awk

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 }