r36755 - /packages/cimg/trunk/debian/rules

tille at users.alioth.debian.org tille at users.alioth.debian.org
Wed Jul 28 07:04:20 UTC 2010


Author: tille
Date: Wed Jul 28 07:04:11 2010
New Revision: 36755

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=36755
Log:
Another example needs to be changed; uploaded to unstable

Modified:
    packages/cimg/trunk/debian/rules

Modified: packages/cimg/trunk/debian/rules
URL: http://svn.debian.org/wsvn/debian-science/packages/cimg/trunk/debian/rules?rev=36755&op=diff
==============================================================================
--- packages/cimg/trunk/debian/rules (original)
+++ packages/cimg/trunk/debian/rules Wed Jul 28 07:04:11 2010
@@ -28,12 +28,17 @@
 override_dh_auto_install:
 	cd examples && $(MAKE) Mlinux "LDFLAGS=-lm -lpthread"
 
+CHANGEFILES=gaussian_fit1d.cpp \
+            use_RGBclass.cpp
+
 override_dh_install:
 	dh_install
 	# In gaussian_fit1d.cpp the files is included into itself and thus the current directory needs to be in include path
 	cd debian/$(examples)/usr/share/doc/$(pkg)/examples; \
 	    sed -i 's?\(CFLAGS[[:space:]=]*-I\)\.\. -Wall -W?\1`pwd` -Wall -W?' Makefile; \
-	    sed -i 's?#define cimg_plugin "examples/gaussian_fit1d.cpp"?#define cimg_plugin "gaussian_fit1d.cpp"?' gaussian_fit1d.cpp
+	    for file in $(CHANGEFILES) ; do \
+		sed -i "s?#define cimg_plugin \"examples/$$file\"?#define cimg_plugin \"$$file\"?" $$file ; \
+	    done
 
 override_dh_auto_clean:
 	-cd examples && $(MAKE) clean




More information about the debian-science-commits mailing list