[Python-modules-commits] r17228 - in packages/pyke/trunk/debian (rules)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Sun May 29 20:56:54 UTC 2011


    Date: Sunday, May 29, 2011 @ 20:56:53
  Author: eriol-guest
Revision: 17228

Added documentation stylesheets

Modified:
  packages/pyke/trunk/debian/rules

Modified: packages/pyke/trunk/debian/rules
===================================================================
--- packages/pyke/trunk/debian/rules	2011-05-29 18:30:14 UTC (rev 17227)
+++ packages/pyke/trunk/debian/rules	2011-05-29 20:56:53 UTC (rev 17228)
@@ -1,4 +1,7 @@
 #!/usr/bin/make -f
+
+TMP_DIR:=$(shell mktemp -d)
+
 %:
 	dh $@
 
@@ -26,6 +29,8 @@
 	dh_installchangelogs RELEASE_NOTES-1.txt upstream
 
 override_dh_installdocs:
+	# Copy stylesheets from builded documentation shipped in upstream package
+	cp -r doc/html/stylesheets $(TMP_DIR)
 	# Remove builded documentation shipped in upstream package
 	rm -rf doc/html/
 	# Add target links using upstream script
@@ -36,4 +41,6 @@
 	cd doc/source; bin/strip_links
 	# Copy documentation images
 	cp -r doc/source/images doc/html
+	# Restore documentation stylesheets
+	mv $(TMP_DIR)/stylesheets doc/html/
 	dh_installdocs




More information about the Python-modules-commits mailing list