This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch master
in repository openstreetmap-map-icons.

commit 901838122d679e417012144a5b35f187a0373375
Author: Giovanni Mascellani <mascell...@poisson.phc.unipi.it>
Date:   Fri Nov 6 15:54:00 2009 +0000

    Fixed get-orig-source
---
 debian/rules | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/debian/rules b/debian/rules
index 4c9e642..8095571 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,8 +9,10 @@
 export DH_OPTIONS
 
 SVNREPO := http://svn.openstreetmap.org/applications/share/map-icons
-SVNREV := 8974
 DATE := $(shell date +%Y%m%d)
+VERSION := 0.0.svn${SVNREV}
+DESTDIR := ../tarballs/openstreetmap-map-icons-${VERSION}
+DESTTGZ := ../tarballs/openstreetmap-map-icons_${VERSION}.orig.tar.gz
 
 build: build-arch build-indep
 
@@ -70,18 +72,18 @@ get-orig-source:
        dh_testdir
        test -d ../tarballs/. || mkdir -p ../tarballs
        @echo Downloading openstreetmap-map-icons from $(SVNREPO)
-       svn -r $(SVNREV) export $(SVNREPO) 
../tarballs/openstreetmap-map-icons-0.0.0.$(DATE)
+       svn -r $(SVNREV) export $(SVNREPO) $(DESTDIR)
        @echo Removing directories: debian nickw japan
-       rm -rf ../tarballs/openstreetmap-map-icons-0.0.0.$(DATE)/debian
-       rm -rf ../tarballs/openstreetmap-map-icons-0.0.0.$(DATE)/nickw
-       rm -rf ../tarballs/openstreetmap-map-icons-0.0.0.$(DATE)/japan
+       rm -rf $(DESTDIR)/debian
+       rm -rf $(DESTDIR)/nickw
+       rm -rf $(DESTDIR)/japan
        @echo Building snapshot tarball
-       tar czf ../tarballs/openstreetmap-map-icons_0.0.0.$(DATE).orig.tar.gz 
-C ../tarballs openstreetmap-map-icons-0.0.0.$(DATE)
+       tar czf $(DESTTGZ) -C `dirname $(DESTDIR)` `basename $(DESTDIR)`
        @echo Cleaning up
-       rm -rf ../tarballs/openstreetmap-map-icons-0.0.0.$(DATE)
+       rm -rf $(DESTDIR)
        @echo .
        @echo To update debian/changelog type
-       @echo dch -v 0.0.0.$(DATE)-1
+       @echo dch -v $(VERSION)-1
        @echo .
 
 .PHONY: build clean binary-indep binary-arch binary install install-indep 
install-arch

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/openstreetmap-map-icons.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to