[DRE-commits] r4204 - trunk/coderay/debian

Joshua Timberman jtimberman-guest at alioth.debian.org
Thu Sep 24 20:32:27 UTC 2009


Author: jtimberman-guest
Date: 2009-09-24 20:32:27 +0000 (Thu, 24 Sep 2009)
New Revision: 4204

Modified:
   trunk/coderay/debian/rules
Log:
get-orig-source from svn for coderay

Modified: trunk/coderay/debian/rules
===================================================================
--- trunk/coderay/debian/rules	2009-09-24 12:54:48 UTC (rev 4203)
+++ trunk/coderay/debian/rules	2009-09-24 20:32:27 UTC (rev 4204)
@@ -4,6 +4,20 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk
 
+PACKAGE = coderay
+SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
+SVN_REVISION := $(shell echo $(SRC_VERSION) | awk -F"+" '{ print $$2 }' | sed 's/svn//' )
+TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz
+.PHONY: get-orig-source
+get-orig-source:
+	rm -rf get-orig-source $(TARBALL)
+	mkdir get-orig-source
+	svn export -r $(SVN_REVISION) http://svn.rubychan.de/coderay/tags/$(SRC_VERSION) \
+	 get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig
+	GZIP=--best tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig
+	rm -rf get-orig-source
+	echo "  "$(TARBALL)" created; move it to the right destination to build the package"
+
 install/libcoderay-ruby1.8::
 	mv $(CURDIR)/debian/libcoderay-ruby1.8/usr/bin/coderay* $(CURDIR)/debian/coderay/usr/bin/
 	rmdir $(CURDIR)/debian/libcoderay-ruby1.8/usr/bin




More information about the Pkg-ruby-extras-commits mailing list