Author: nd-guest
Date: 2007-09-09 21:18:38 +0000 (Sun, 09 Sep 2007)
New Revision: 1065

Modified:
   packages/josm/trunk/debian/rules
Log:
* added get-orig-source target to debian/rules


Modified: packages/josm/trunk/debian/rules
===================================================================
--- packages/josm/trunk/debian/rules    2007-09-09 20:50:08 UTC (rev 1064)
+++ packages/josm/trunk/debian/rules    2007-09-09 21:18:38 UTC (rev 1065)
@@ -14,6 +14,10 @@
 # Docs are already included in the jar file and can be accessed from within 
josm.
 DEB_INSTALL_DOCS_ALL :=
 
+DEB_UPSTREAM_VERSION := 1.6
+SVNREPO := http://josm.openstreetmap.de/svn
+SVNREV := 320
+
 clean::
        dh_clean $(CURDIR)/REVISION
 
@@ -26,3 +30,16 @@
        install -m 755 $(CURDIR)/debian/josm.sh 
$(CURDIR)/debian/josm/usr/bin/josm
        install -m 644 $(CURDIR)/debian/icons/josm-16.xpm 
$(CURDIR)/debian/josm/usr/share/pixmaps/josm-16.xpm
        install -m 644 $(CURDIR)/debian/icons/josm-32.xpm 
$(CURDIR)/debian/josm/usr/share/pixmaps/josm-32.xpm
+
+get-orig-source::
+       dh_testdir
+       test -d ../tarballs/. || mkdir -p ../tarballs
+       echo Downloading ${SVNREV} from ${SVNREPO}
+       svn export -r ${SVNREV} ${SVNREPO} 
../tarballs/josm-${DEB_UPSTREAM_VERSION}~svn${SVNREV}
+       echo Removing jar files and test data
+       find ../tarballs/josm-${DEB_UPSTREAM_VERSION}~svn${SVNREV} -name 
"*.jar" -exec rm {} \;
+       rm -f ../tarballs/josm-${DEB_UPSTREAM_VERSION}~svn${SVNREV}/data/*
+       echo Building snapshot tarball                                          
                                                                                
        
+       tar czf 
../tarballs/josm_${DEB_UPSTREAM_VERSION}~svn${SVNREV}.orig.tar.gz -C 
../tarballs josm-${DEB_UPSTREAM_VERSION}~svn${SVNREV}
+       echo Cleaning up
+       rm -rf ../tarballs/josm-${DEB_UPSTREAM_VERSION}~svn${SVNREV}


_______________________________________________
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