[GRASS-SVN] r33454 - grass/branches/develbranch_6/swig/python/interfaces

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 15 23:53:41 EDT 2008


Author: hamish
Date: 2008-09-15 23:53:41 -0400 (Mon, 15 Sep 2008)
New Revision: 33454

Modified:
   grass/branches/develbranch_6/swig/python/interfaces/Makefile
Log:
crude attempt at cleansing gis.h

Modified: grass/branches/develbranch_6/swig/python/interfaces/Makefile
===================================================================
--- grass/branches/develbranch_6/swig/python/interfaces/Makefile	2008-09-16 02:22:55 UTC (rev 33453)
+++ grass/branches/develbranch_6/swig/python/interfaces/Makefile	2008-09-16 03:53:41 UTC (rev 33454)
@@ -15,7 +15,12 @@
 	cat ../../../include/gisdefs.h | \
 		sed -e '/\.\.\..*;/d' -e '/\.\.\./,/;/d' \
 		-e '/^#/d' >> gisdefs.i
-#	gis.h  (gis.i based on gis.h c.12/17/04 (r16393)
+	echo $(HEADER_LINE1) >  gis.i
+	echo $(HEADER_LINE2) >> gis.i
+	echo >> gis.i
+	cat ../../../include/gis.h | \
+		sed -e 'N;N;N;N;N;N;N;N;N; s/_Color_Rule_[ \t\n]*{[ \t\n]*\(.*}\) low.*/_Color_Rule_\n{\n    \1 low;\n    \1 high;\n/' \
+		>> gis.i
 
 vector:
 	echo $(HEADER_LINE1) >  dig_structs.i
@@ -37,5 +42,5 @@
 #	imagery.h
 
 distclean:
-	-rm -f gisdefs.i dig_structs.i vect.i
-	# gis.i dig_types.i imagedefs.h imagery.h
+	-rm -f gisdefs.i gis.i dig_structs.i vect.i
+	# dig_types.i imagedefs.h imagery.h



More information about the grass-commit mailing list