[GRASS-SVN] r42489 - grass/trunk/lib/python/ctypes

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jun 5 14:00:15 EDT 2010


Author: glynn
Date: 2010-06-05 14:00:15 -0400 (Sat, 05 Jun 2010)
New Revision: 42489

Added:
   grass/trunk/lib/python/ctypes/fix.sed
Modified:
   grass/trunk/lib/python/ctypes/Makefile
Log:
Move sed script out of Makefile


Modified: grass/trunk/lib/python/ctypes/Makefile
===================================================================
--- grass/trunk/lib/python/ctypes/Makefile	2010-06-05 16:18:12 UTC (rev 42488)
+++ grass/trunk/lib/python/ctypes/Makefile	2010-06-05 18:00:15 UTC (rev 42489)
@@ -78,14 +78,7 @@
 endif
 
 $(DSTDIR)/%.py: %.py | $(DSTDIR)
-	$(SED) \
-	-e '/^# End loader$$/a\
-	from ctypes_preamble import *\
-	from ctypes_preamble import _variadic_function\
-	from ctypes_loader import *' \
-	-e '/^# Begin preamble$$/,/^# End preamble$$/d' \
-	-e '/^# Begin loader$$/,/^# End loader$$/d' \
-	$< > $@
+	$(SED) -f fix.sed $< > $@
 
 $(DSTDIR)/ctypes_%.py: %.py | $(DSTDIR)
 	$(INSTALL_DATA) $< $@

Added: grass/trunk/lib/python/ctypes/fix.sed
===================================================================
--- grass/trunk/lib/python/ctypes/fix.sed	                        (rev 0)
+++ grass/trunk/lib/python/ctypes/fix.sed	2010-06-05 18:00:15 UTC (rev 42489)
@@ -0,0 +1,7 @@
+#!/usr/bin/sed -f
+/^# End loader$/a\
+from ctypes_preamble import *\
+from ctypes_preamble import _variadic_function\
+from ctypes_loader import *
+/^# Begin preamble$/,/^# End preamble$/d
+/^# Begin loader$/,/^# End loader$/d



More information about the grass-commit mailing list