2
2
#BHEADER**********************************************************************
3
# Copyright (c) 2006 The Regents of the University of California.
3
# Copyright (c) 2008, Lawrence Livermore National Security, LLC.
4
4
# Produced at the Lawrence Livermore National Laboratory.
5
# Written by the HYPRE team, UCRL-CODE-222953.
8
# This file is part of HYPRE (see http://www.llnl.gov/CASC/hypre/).
9
# Please see the COPYRIGHT_and_LICENSE file for the copyright notice,
10
# disclaimer and the GNU Lesser General Public License.
12
# This program is free software; you can redistribute it and/or modify it
13
# under the terms of the GNU General Public License (as published by the Free
5
# This file is part of HYPRE. See file COPYRIGHT for details.
7
# HYPRE is free software; you can redistribute it and/or modify it under the
8
# terms of the GNU Lesser General Public License (as published by the Free
14
9
# Software Foundation) version 2.1 dated February 1999.
16
# This program is distributed in the hope that it will be useful, but WITHOUT
17
# ANY WARRANTY; without even the IMPLIED WARRANTY OF MERCHANTABILITY or
18
# FITNESS FOR A PARTICULAR PURPOSE. See the terms and conditions of the
19
# GNU General Public License for more details.
21
# You should have received a copy of the GNU Lesser General Public License
22
# along with this program; if not, write to the Free Software Foundation,
23
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
12
#EHEADER**********************************************************************
29
17
while [ $# -ge 1 ]; do
30
18
echo ""; echo "/* $1 */"
31
19
perl -e 'while ($line = <>) {if ($line =~ /#else|#elif/) {0 while(<> !~ /#endif/);} elsif ($line !~ /#if|#endif/) {print("$line");}}' $1 | mkproto -p | grep -v " main[ (]"