[MOAB-dev] r3543 - MOAB/trunk/tools/iGeom

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Sat Feb 13 07:24:14 CST 2010


Author: kraftche
Date: 2010-02-13 07:24:14 -0600 (Sat, 13 Feb 2010)
New Revision: 3543

Removed:
   MOAB/trunk/tools/iGeom/mkprotos.sh
Modified:
   MOAB/trunk/tools/iGeom/Makefile.am
Log:
remove extra copy of mkprotos.sh

Modified: MOAB/trunk/tools/iGeom/Makefile.am
===================================================================
--- MOAB/trunk/tools/iGeom/Makefile.am	2010-02-13 13:18:01 UTC (rev 3542)
+++ MOAB/trunk/tools/iGeom/Makefile.am	2010-02-13 13:24:14 UTC (rev 3543)
@@ -47,5 +47,5 @@
 	echo "IGEOM_LIBDIR=${libdir}" >> $(DESTDIR)$(cfgdir)/iGeom-Defs.inc
 	echo "MOAB_LIBDIR=${libdir}" >> $(DESTDIR)$(cfgdir)/iGeom-Defs.inc
 
-iGeom_protos.h: iGeom.h mkprotos.sh Makefile.am
-	$(srcdir)/mkprotos.sh iGeom MBCN $< $@ iGeom_FCDefs.h
+iGeom_protos.h: iGeom.h $(top_srcdir)/tools/iMesh/mkprotos.sh Makefile.am
+	$(top_srcdir)/tools/iMesh/mkprotos.sh iGeom MBCN $< $@ iGeom_FCDefs.h

Deleted: MOAB/trunk/tools/iGeom/mkprotos.sh
===================================================================
--- MOAB/trunk/tools/iGeom/mkprotos.sh	2010-02-13 13:18:01 UTC (rev 3542)
+++ MOAB/trunk/tools/iGeom/mkprotos.sh	2010-02-13 13:24:14 UTC (rev 3543)
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-default_fcdefs=iBase_FCDefs.h
-case "x$1" in
-  x|x-*)
-    echo "Usage: $0 <FUNC_PREFIX> <DEF_PREFIX> <INPUT_FILE> <OUTPUT_FILE> [<FCDEFS>=${default_fcdefs}]"
-    ;;
-esac
-
-PFX="$1"
-DEF="$2"
-INPUT="$3"
-OUTPUT="$4"
-if test "x" != "x$5"; then
-  FCDEFS="$5"
-else
-  FCDEFS="$default_fcdefs"
-fi
-
-if test "x" = "x$SED"; then
-  SED=`which sed`
-fi
-
-EXPR="s/^[[:space:]]*void[[:space:]][[:space:]]*${PFX}_\([_a-zA-Z0-9][_a-zA-Z0-9]*\)[[:space:]]*(.*\$/${PFX}_\1/p"
-
-echo "#include \"$FCDEFS\"" > $OUTPUT
-echo "#ifdef ${DEF}_FC_FUNC_" >> $OUTPUT
-echo >> $OUTPUT
-for func in `$SED -n "$EXPR" $INPUT`; do
-  lower=`echo $func | tr '[:upper:]' '[:lower:]'`
-  upper=`echo $func | tr '[:lower:]' '[:upper:]'`
-  echo "#define $func ${DEF}_FC_FUNC_( $lower, $upper )" >> $OUTPUT
-done
-echo >> $OUTPUT
-echo "#endif" >> $OUTPUT



More information about the moab-dev mailing list