[Pkg-voip-commits] r3800 - libsupertone/trunk/debian

kilian at alioth.debian.org kilian at alioth.debian.org
Sat Jul 21 14:59:37 UTC 2007


Author: kilian
Date: 2007-07-21 14:59:37 +0000 (Sat, 21 Jul 2007)
New Revision: 3800

Modified:
   libsupertone/trunk/debian/changelog
   libsupertone/trunk/debian/rules
Log:
* Fix get-orig-source target.

Modified: libsupertone/trunk/debian/changelog
===================================================================
--- libsupertone/trunk/debian/changelog	2007-07-21 14:58:49 UTC (rev 3799)
+++ libsupertone/trunk/debian/changelog	2007-07-21 14:59:37 UTC (rev 3800)
@@ -1,8 +1,9 @@
 libsupertone (0.0.2~pre20060205-2) UNRELEASED; urgency=low
 
   * NOT RELEASED YET
+  * Fix get-orig-source target.
 
- -- Santiago Ruano Rincón <santiago at debian.org>  Sun, 13 May 2007 22:49:23 -0500
+ -- Kilian Krause <kilian at debian.org>  Sat, 21 Jul 2007 16:59:22 +0200
 
 libsupertone (0.0.2~pre20060205-1) experimental; urgency=low
 

Modified: libsupertone/trunk/debian/rules
===================================================================
--- libsupertone/trunk/debian/rules	2007-07-21 14:58:49 UTC (rev 3799)
+++ libsupertone/trunk/debian/rules	2007-07-21 14:59:37 UTC (rev 3800)
@@ -9,9 +9,10 @@
 DEBVERSION:=$(shell head -n 1 debian/changelog \
 		    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
 UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//' -e 's/.*pre//')
+DEBUPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
 
-FILENAME := libsupertone_$(DEBVERSION).orig.tar.gz
-FULLNAME := libsupertone-$(DEBVERSION)
+FILENAME := libsupertone_$(DEBUPVERSION).orig.tar.gz
+FULLNAME := libsupertone-$(DEBUPVERSION)
 URL := http://www.soft-switch.org/downloads/snapshots/unicall/libsupertone-$(UPVERSION).tar.gz
 
 CFLAGS = -Wall -g
@@ -86,8 +87,16 @@
 	dh_md5sums
 	dh_builddeb
 
-# TODO: get-orig-source
-#get-orig-source:
+print-version:
+	@@echo "Debian version:          $(DEBVERSION)"
+	@@echo "Debian tarball version:  $(DEBUPVERSION)"
+	@@echo "Upstream version:        $(UPVERSION)"
 
+get-orig-source:
+	@@dh_testdir
+	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
+	@@echo Downloading $(FILENAME) from $(URL) ...
+	@@wget -N -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
+
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install 




More information about the Pkg-voip-commits mailing list