summaryrefslogtreecommitdiffstats
path: root/solenv/bin/getcsym.awk
diff options
context:
space:
mode:
authorStephan Bergmann <sb@openoffice.org>2003-01-10 10:23:14 +0000
committerStephan Bergmann <sb@openoffice.org>2003-01-10 10:23:14 +0000
commitff7151bf4bbb735963eeffe55eca7b7b41d00097 (patch)
treee165fdd1a80dcfb887f50abb8be2d3c0546020c2 /solenv/bin/getcsym.awk
parentRemove main definition, it is wrong and it is failing compile on the mac plat... (diff)
downloadcore-ff7151bf4bbb735963eeffe55eca7b7b41d00097.tar.gz
core-ff7151bf4bbb735963eeffe55eca7b7b41d00097.zip
#106097# Correctly parse blocks that do not contain a local: section.
Diffstat (limited to 'solenv/bin/getcsym.awk')
-rw-r--r--solenv/bin/getcsym.awk8
1 files changed, 4 insertions, 4 deletions
diff --git a/solenv/bin/getcsym.awk b/solenv/bin/getcsym.awk
index d7376cf712ba..6d91a160597b 100644
--- a/solenv/bin/getcsym.awk
+++ b/solenv/bin/getcsym.awk
@@ -2,9 +2,9 @@
#
# $RCSfile: getcsym.awk,v $
#
-# $Revision: 1.2 $
+# $Revision: 1.3 $
#
-# last change: $Author: hjs $ $Date: 2002-11-21 16:50:30 $
+# last change: $Author: sb $ $Date: 2003-01-10 11:23:14 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -59,11 +59,11 @@
#
#
#*************************************************************************
+
BEGIN { global_found = "false" }
/[ \t]*#/ { sub( substr( $0, index($0, "#")),"" ) }
/[ \t]*local:/ { global_found = "false" }
+/[ \t]*}/ { global_found = "false" }
/^[ \t]*$/ { next }
global_found == "true" { print $0 }
/[ \t]*global:/ { global_found = "true" }
-
-