#!/bin/sh 
# Copyright 2003 Regents of the University of California

# SETI_BOINC is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version.

# SETI_BOINC 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 General Public License for
# more details.

# You should have received a copy of the GNU General Public License along
# with SETI_BOINC; see the file COPYING.  If not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

filename=/tmp/`echo $1 | @SED@ 's/\.sql//'`
echo begin_refs > $filename
@AWK@ -f @SAH_TOP_DIR@/db/find_references.awk $1 | @SED@ 's/[(),;]//g' | @SORT@ | @UNIQ@ >> $filename
echo end_refs >> $filename
@CAT@ $1 | @TR@ "[A-Z]" "[a-z]" | @SED@ 's/\`//g' >>$filename

@AWK@ -f @SAH_TOP_DIR@/db/schema_to_class.awk $filename
INDENT=@INDENT@
if test -n "$INDENT" 
then
  @INDENT@ @INDENT_FLAGS@ $filename.h
  @INDENT@ @INDENT_FLAGS@ $filename.cpp
fi
  
@MV@ $filename.cpp .
@MV@ $filename.h .
@RM@ $filename*


syntax highlighted by Code2HTML, v. 0.9.1