[Python-modules-commits] r10172 - in packages/python-cloudfiles/trunk/debian (rules)

mshuler-guest at users.alioth.debian.org mshuler-guest at users.alioth.debian.org
Wed Oct 21 23:37:48 UTC 2009


    Date: Wednesday, October 21, 2009 @ 23:37:47
  Author: mshuler-guest
Revision: 10172

strip shebang from example unittests

Modified:
  packages/python-cloudfiles/trunk/debian/rules

Modified: packages/python-cloudfiles/trunk/debian/rules
===================================================================
--- packages/python-cloudfiles/trunk/debian/rules	2009-10-21 18:43:56 UTC (rev 10171)
+++ packages/python-cloudfiles/trunk/debian/rules	2009-10-21 23:37:47 UTC (rev 10172)
@@ -3,10 +3,19 @@
 %:
 	dh $@
 
+# move documentation to html dir for clarity
 override_dh_installdocs:
 	dh_installdocs
 	mv debian/python-cloudfiles/usr/share/doc/python-cloudfiles/docs \
 		debian/python-cloudfiles/usr/share/doc/python-cloudfiles/html
 
+# strip shebang from example unittests
+override_dh_installexamples:
+	dh_installexamples
+	for i in $$(find debian/python-cloudfiles/usr/share/doc/python-cloudfiles/examples/tests -type f); do \
+		sed -i '1 s|^#!/usr/bin/python||' $$i ;\
+	done
+
+# don't compress examples and documentation files
 override_dh_compress:
 	dh_compress -X.py -X.js -Xapi-objects.txt




More information about the Python-modules-commits mailing list