office-gobmx/solenv/bin/getcsym.awk

39 lines
1.4 KiB
Awk
Raw Normal View History

2001-04-27 06:46:32 -05:00
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
2001-04-27 06:46:32 -05:00
#
# OpenOffice.org - a multi-platform office productivity suite
2001-04-27 06:46:32 -05:00
#
# $RCSfile: getcsym.awk,v $
2001-04-27 06:46:32 -05:00
#
# $Revision: 1.6 $
2001-04-27 06:46:32 -05:00
#
# This file is part of OpenOffice.org.
2001-04-27 06:46:32 -05:00
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
2001-04-27 06:46:32 -05:00
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
2001-04-27 06:46:32 -05:00
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
2001-04-27 06:46:32 -05:00
#
#*************************************************************************
2001-04-27 06:46:32 -05:00
BEGIN { global_found = "false" }
2002-11-21 09:50:30 -06:00
/[ \t]*#/ { sub( substr( $0, index($0, "#")),"" ) }
2001-04-27 06:46:32 -05:00
/[ \t]*local:/ { global_found = "false" }
/[ \t]*}/ { global_found = "false" }
2001-04-27 06:46:32 -05:00
/^[ \t]*$/ { next }
global_found == "true" { print $0 }
/[ \t]*global:/ { global_found = "true" }