Author: gmascellani-guest
Date: 2008-12-23 12:21:15 +0000 (Tue, 23 Dec 2008)
New Revision: 1813

Modified:
   packages/josm/trunk/debian/rules
Log:
get-orig-source: ability to fetch a particular release


Modified: packages/josm/trunk/debian/rules
===================================================================
--- packages/josm/trunk/debian/rules    2008-12-22 23:03:15 UTC (rev 1812)
+++ packages/josm/trunk/debian/rules    2008-12-23 12:21:15 UTC (rev 1813)
@@ -18,6 +18,11 @@
 SVNREPO := http://josm.openstreetmap.de/svn/trunk
 SVNI18NREPO := http://svn.openstreetmap.org/applications/editors/josm/i18n/
 DATE := $(shell date +%Y%m%d)
+ifdef SVNREV
+VERSION := 0.0.svn${SVNREV}
+else
+VERSION := 0.0.0.${DATE}
+endif
 
 clean::
        dh_clean $(CURDIR)/REVISION
@@ -37,19 +42,19 @@
        dh_testdir
        test -d ../tarballs/. || mkdir -p ../tarballs
        @echo Downloading josm from ${SVNREPO}
-       svn export --ignore-externals ${SVNREPO} ../tarballs/josm-0.0.0.${DATE}
+       svn export -r ${SVNREV} --ignore-externals ${SVNREPO} 
../tarballs/josm-${VERSION}
        @echo Removing jar files and test data
-       find ../tarballs/josm-0.0.0.${DATE} -name "*.jar" -exec rm -v {} \;
-       rm -f ../tarballs/josm-0.0.0.${DATE}/data/*
+       find ../tarballs/josm-${VERSION} -name "*.jar" -exec rm -v {} \;
+       rm -f ../tarballs/josm-${VERSION}/data/*
        @echo Removing icons directory
-       rm -rf ../tarballs/josm-0.0.0.${DATE}/styles/standard/icons/
+       rm -rf ../tarballs/josm-${VERSION}/styles/standard/icons/
        @echo Fetching internalization data...
-       svn export ${SVNI18NREPO} ../tarballs/josm-0.0.0.${DATE}/i18n
+       svn export ${SVNI18NREPO} ../tarballs/josm-${VERSION}/i18n
        @echo Building snapshot tarball                                         
                                                                                
        
-       tar czf ../tarballs/josm_0.0.0.${DATE}.orig.tar.gz -C ../tarballs 
josm-0.0.0.${DATE}
+       tar czf ../tarballs/josm_${VERSION}.orig.tar.gz -C ../tarballs 
josm-${VERSION}
        @echo Cleaning up
-       rm -rf ../tarballs/josm-0.0.0.${DATE}
+       rm -rf ../tarballs/josm-${VERSION}
        @echo .
        @echo To update debian/changelog type
-       @echo dch -v 0.0.0.${DATE}-1
+       @echo dch -v ${VERSION}-1
        @echo .


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

Reply via email to