[GRASS-SVN] r33410 -
grass/branches/develbranch_6/swig/python/interfaces
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 12 03:15:47 EDT 2008
Author: hamish
Date: 2008-09-12 03:15:47 -0400 (Fri, 12 Sep 2008)
New Revision: 33410
Modified:
grass/branches/develbranch_6/swig/python/interfaces/Makefile
Log:
fix problems due to indent making some some fns multiline (trac #308)
Modified: grass/branches/develbranch_6/swig/python/interfaces/Makefile
===================================================================
--- grass/branches/develbranch_6/swig/python/interfaces/Makefile 2008-09-12 07:07:44 UTC (rev 33409)
+++ grass/branches/develbranch_6/swig/python/interfaces/Makefile 2008-09-12 07:15:47 UTC (rev 33410)
@@ -1,17 +1,40 @@
# auto-generate typedef file
+# variadic functions and #includes are removed.
# Note: gis contains the raster data API
+
+HEADER_LINE1 = "/* auto-generated swig typedef file `date` */"
+HEADER_LINE2 = '/* variadic functions and included headers have been removed */'
+
all: gis vector
gis:
- echo "/* auto-generate swig typedef file (with some GRASS functions removed) */" > gisdefs.i
- cat ../../../include/gisdefs.h | grep -v '#\|asprintf\|G_snprintf\|G_debug\|G_fatal_error\|G_warning\|G_verbose\|lzw\|G_done_msg\|G_message\|G_important_message' >> gisdefs.i
+ echo $(HEADER_LINE1) > gisdefs.i
+ echo $(HEADER_LINE2) >> gisdefs.i
+ echo >> gisdefs.i
+ cat ../../../include/gisdefs.h | \
+ sed -e '/\.\.\..*;/d' -e '/\.\.\./,/;/d' \
+ -e '/^#/d' >> gisdefs.i
+# gis.h (gis.i checked into CVS 05/26/06; diff vs. that to see what was removed)
vector:
- echo "/* auto-generate swig typedef file */" > dig_structs.i
- cat ../../../include/vect/dig_structs.h >> dig_structs.i
- echo "/* auto-generate swig typedef file */" > vect.i
- cat ../../../include/Vect.h | grep -v 'V1_\|V2_' >> vect.i
+ echo $(HEADER_LINE1) > dig_structs.i
+ echo $(HEADER_LINE2) >> dig_structs.i
+ echo >> dig_structs.i
+ cat ../../../include/vect/dig_structs.h | \
+ sed -e '/^#include.*>/d' \
+ -e '/^#.*DIG___STRUCTS___/d' >> dig_structs.i
+ echo $(HEADER_LINE1) > vect.i
+ echo $(HEADER_LINE2) >> vect.i
+ echo >> vect.i
+ cat ../../../include/Vect.h | \
+ sed -e '/V[12]_.*;/d' -e '/V[12]_/,/;/d' \
+ -e '/^#/d' >> vect.i
+# generate dig_types.i from include/vect/dig_defines.h
+#
+#imagery:
+# imagedefs.h
+# imagery.h
distclean:
-rm -f gisdefs.i dig_structs.i vect.i
More information about the grass-commit
mailing list