[Pkg-osm-commits] [SCM] monav branch, master, updated. upstream/0.2-24-g97bf5c5

David Paleino dapal at debian.org
Tue Jan 11 09:03:45 UTC 2011


The following commit has been merged in the master branch:
commit 92e5cba06de943f0f1bf68806e08b8103d904796
Author: David Paleino <dapal at debian.org>
Date:   Tue Jan 11 09:32:54 2011 +0100

    Prepare get-orig-source to also handle SVN snapshots

diff --git a/debian/rules b/debian/rules
index d110a4e..b062995 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,12 @@
 export DH_OPTIONS
 
 CURVER := $(shell dpkg-parsechangelog | grep ^Version | cut -d\  -f2 | cut -d- -f1)
+ifeq (,$(findstring svn,$(CURVER)))
 SVNREPO := https://monav.googlecode.com/svn/tags/release-$(CURVER)
+else
+REVISION := $(shell echo $(CURVER) | awk -F'svn' '{print $$2}')
+SVNREPO := https://monav.googlecode.com/svn/trunk/
+endif
 
 configure:
 	qmake CONFIG+=debug monavclient.pro -o Makefile.client
@@ -44,7 +49,11 @@ override_dh_auto_clean: configure
 	dh $@
 
 get-orig-source:
+ifeq (,$(findstring svn,$(CURVER)))
 	svn export $(SVNREPO) monav-$(CURVER)
+else
+	svn export $(SVNREPO) -r $(REVISION) monav-$(CURVER)
+endif
 	tar cf monav_$(CURVER).orig.tar monav-$(CURVER)/
 	gzip -9 monav_$(CURVER).orig.tar
 	rm -rf monav-$(CURVER)/

-- 
fast navigation system featuring exact routing



More information about the Pkg-osm-commits mailing list