[Python-modules-commits] r7968 - in packages/python-django/trunk/debian (3 files)

lamby at users.alioth.debian.org lamby at users.alioth.debian.org
Tue Mar 24 00:52:44 UTC 2009


    Date: Tuesday, March 24, 2009 @ 00:52:44
  Author: lamby
Revision: 7968

Programatically replace most references to "django-admin.py" with "django-admin" in the generated documentation. (Closes: #519937)

Modified:
  packages/python-django/trunk/debian/changelog
  packages/python-django/trunk/debian/python-django-doc.docs
  packages/python-django/trunk/debian/rules

Modified: packages/python-django/trunk/debian/changelog
===================================================================
--- packages/python-django/trunk/debian/changelog	2009-03-23 23:31:47 UTC (rev 7967)
+++ packages/python-django/trunk/debian/changelog	2009-03-24 00:52:44 UTC (rev 7968)
@@ -1,3 +1,10 @@
+python-django (1.0.2-4) UNRELEASED; urgency=low
+
+  * Programatically replace most references to "django-admin.py" with
+    "django-admin" in the generated documentation. (Closes: #519937)
+
+ -- Chris Lamb <lamby at debian.org>  Tue, 24 Mar 2009 00:44:24 +0000
+
 python-django (1.0.2-3) unstable; urgency=low
 
   * Split documentation into a separate python-django-doc package due to size

Modified: packages/python-django/trunk/debian/python-django-doc.docs
===================================================================
--- packages/python-django/trunk/debian/python-django-doc.docs	2009-03-23 23:31:47 UTC (rev 7967)
+++ packages/python-django/trunk/debian/python-django-doc.docs	2009-03-24 00:52:44 UTC (rev 7968)
@@ -1 +1 @@
-docs/_build/html
+docs.debian/_build/html

Modified: packages/python-django/trunk/debian/rules
===================================================================
--- packages/python-django/trunk/debian/rules	2009-03-23 23:31:47 UTC (rev 7967)
+++ packages/python-django/trunk/debian/rules	2009-03-24 00:52:44 UTC (rev 7968)
@@ -12,14 +12,19 @@
 	dh $@
 
 clean: unpatch
-	rm -rf docs/_build/*
+	rm -rf docs.debian
 	dh $@
 
 override_dh_auto_build:
 	dh_auto_build
-	# Build HTML documentation, drop source files
-	make -C docs html
-	rm -rf docs/_build/html/_sources/
+	
+	# Build the HTML documentation.
+	# We programmatically replace most instances of django-admin.py with
+	# django-admin and remove the source files from the target _build.
+	cp -r docs docs.debian
+	find docs.debian -type f -print0 | xargs -0r perl -pi -e 's|(?<!/)(django-admin)\.py|$$1|'
+	make -C docs.debian html
+	rm -rf docs.debian/_build/html/_sources/
 
 override_dh_install:
 	dh_install




More information about the Python-modules-commits mailing list