r173 - atanks/trunk/debian

Mark Purcell msp at alioth.debian.org
Mon Oct 29 11:16:02 UTC 2012


Author: msp
Date: 2012-10-29 11:16:02 +0000 (Mon, 29 Oct 2012)
New Revision: 173

Modified:
   atanks/trunk/debian/changelog
   atanks/trunk/debian/rules
Log:
Add get-orig-source target (~dfsg)

Modified: atanks/trunk/debian/changelog
===================================================================
--- atanks/trunk/debian/changelog	2012-10-28 10:21:35 UTC (rev 172)
+++ atanks/trunk/debian/changelog	2012-10-29 11:16:02 UTC (rev 173)
@@ -1,11 +1,11 @@
-atanks (5.7-1) UNRELEASED; urgency=low
+atanks (5.7~dfsg-1) experimental; urgency=low
 
-  * NOT RELEASED YET
   * New upstream release
     - Fixes "Game crashes when changing options" (Closes: #691107)
   * Ack NMU - Thanks Michael
+  * Add get-orig-source target (~dfsg)
 
- -- Mark Purcell <msp at debian.org>  Sun, 28 Oct 2012 21:13:54 +1100
+ -- Mark Purcell <msp at debian.org>  Mon, 29 Oct 2012 22:15:39 +1100
 
 atanks (5.5+dfsg-0.1) unstable; urgency=low
 

Modified: atanks/trunk/debian/rules
===================================================================
--- atanks/trunk/debian/rules	2012-10-28 10:21:35 UTC (rev 172)
+++ atanks/trunk/debian/rules	2012-10-29 11:16:02 UTC (rev 173)
@@ -1,7 +1,31 @@
 #!/usr/bin/make -f
 
+DEBVERSION := $(shell head -n 1 debian/changelog \
+                    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
+UPVERSION := $(shell echo $(DEBVERSION) | sed 's/~dfsg-.//')
+
+PKG=atanks
+FILENAME := $(PKG)_$(UPVERSION)~dfsg.orig.tar.gz
+UPFILENAME := $(PKG)_$(UPVERSION).orig.tar.gz
+URL := http://downloads.sourceforge.net/project/$(PKG)/$(PKG)/$(PKG)-$(UPVERSION)/$(PKG)-$(UPVERSION).tar.gz
+
 %:
 	dh $@ --parallel --dbg-package=atanks-dbg
 
 override_dh_install:
 	dh_install -XCOPYING
+
+get-orig-source:
+	@@dh_testdir
+	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
+	@@#this is for stable versions
+	@@echo Downloading $(UPFILENAME) from $(URL) ...
+	@@wget -nv -T10 -t3 -O ../tarballs/$(UPFILENAME) $(URL)
+	@@echo 'Repacking as DFSG-free (removing windows DLLs)...'
+	@@mkdir -p ../tarballs/$(PKG)-$(UPVERSION).tmp/
+	@@cd ../tarballs/$(PKG)-$(UPVERSION).tmp ; tar xfz ../$(UPFILENAME)
+	@@find ../tarballs/$(PKG)-$(UPVERSION).tmp/ -iname '*.dll' -delete
+	@@echo Writing archive ../tarballs/$(FILENAME) ...
+	@@cd ../tarballs/$(PKG)-$(UPVERSION).tmp ; tar cfz ../$(FILENAME) *
+	@@echo Cleaning up...
+	@@$(RM) -rf ../tarballs/$(PKG)-$(UPVERSION).tmp/ ../tarballs/$(UPFILENAME)




More information about the Pkg-allegro-commits mailing list