[Python-modules-commits] r26735 - in packages/genshi/trunk/debian (rules)

barry at users.alioth.debian.org barry at users.alioth.debian.org
Thu Dec 12 17:39:44 UTC 2013


    Date: Thursday, December 12, 2013 @ 17:39:43
  Author: barry
Revision: 26735

Restore commented out get-orig-source as per maintainer request.

Modified:
  packages/genshi/trunk/debian/rules

Modified: packages/genshi/trunk/debian/rules
===================================================================
--- packages/genshi/trunk/debian/rules	2013-12-12 17:21:33 UTC (rev 26734)
+++ packages/genshi/trunk/debian/rules	2013-12-12 17:39:43 UTC (rev 26735)
@@ -5,3 +5,36 @@
 
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
+
+
+## SVN snapshot (changelog entry with a version: a.b.c~svnREVISION-d)
+## Get the source  from the SVN upstream repository,  then generate the
+## documentation (which is  in the release tarballs but  not in the SVN
+## repository and requires  python-docutils and python-epydoc packages)
+## and finally create the tarball
+#SVN_URL := https://svn.edgewall.org/repos/genshi/trunk
+#SVN_REVISION := $(shell echo $(DEB_UPSTREAM_VERSION)|sed 's/.*~svn\([0-9]*\)/\1/')
+#SVN_DEB_TARBALL_DIR := $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)
+#SVN_DEB_TARBALL :=  $(CURDIR)/../$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz
+#
+## Adapted to CDBS and Genshi from:
+##  http://wiki.debian.org/SandroTosi/Svn_get-orig-source
+#get-orig-source:
+#	-rm -rf $(SVN_DEB_TARBALL_DIR) $(SVN_DEB_TARBALL)
+#
+#	svn export -r $(SVN_REVISION) $(SVN_URL) $(SVN_DEB_TARBALL_DIR)
+#
+#	( cd $(SVN_DEB_TARBALL_DIR) && python setup.py build_doc )
+#
+#	# Get rid of byte-compile files created when building the
+#	# documentation
+#	find $(SVN_DEB_TARBALL_DIR) -name '*.pyc' -exec rm '{}' \;
+#
+#	GZIP='--best --no-name' tar czf $(SVN_DEB_TARBALL) -C $(SVN_DEB_TARBALL_DIR)/../ \
+#		$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)
+#
+#	-rm -rf $(SVN_DEB_TARBALL_DIR)
+#
+#	echo "Created: $(SVN_DEB_TARBALL)"
+#
+#.PHONY: get-orig-source




More information about the Python-modules-commits mailing list