~ubuntu-branches/ubuntu/karmic/hypre/karmic

« back to all changes in this revision

Viewing changes to src/utilities/protos

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2009-03-20 11:40:12 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090320114012-132h6ok9w2r6o609
Tags: 2.4.0b-2
Rebuild against new openmpi.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
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.
6
 
# All rights reserved.
7
 
#
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.
11
 
#
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.
 
6
#
 
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.
15
10
#
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.
20
 
#
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
24
 
#
25
 
# $Revision: 2.4 $
 
11
# $Revision: 2.6 $
26
12
#EHEADER**********************************************************************
27
13
 
28
14
 
 
15
 
 
16
 
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[ (]"