[Pkg-voip-commits] r4099 - asterisk-prompt-fr-proformatique/trunk/debian

kilian at alioth.debian.org kilian at alioth.debian.org
Sun Aug 19 00:15:00 UTC 2007


Author: kilian
Date: 2007-08-19 00:15:00 +0000 (Sun, 19 Aug 2007)
New Revision: 4099

Modified:
   asterisk-prompt-fr-proformatique/trunk/debian/changelog
   asterisk-prompt-fr-proformatique/trunk/debian/copyright
   asterisk-prompt-fr-proformatique/trunk/debian/rules
Log:
* NOT RELEASED YET
* Add get-orig-source target

Modified: asterisk-prompt-fr-proformatique/trunk/debian/changelog
===================================================================
--- asterisk-prompt-fr-proformatique/trunk/debian/changelog	2007-08-19 00:00:08 UTC (rev 4098)
+++ asterisk-prompt-fr-proformatique/trunk/debian/changelog	2007-08-19 00:15:00 UTC (rev 4099)
@@ -1,3 +1,10 @@
+asterisk-prompt-fr-proformatique (20070706-1.4-1) UNRELEASED; urgency=low
+
+  * NOT RELEASED YET
+  * Add get-orig-source target
+
+ -- Kilian Krause <kilian at debian.org>  Sun, 19 Aug 2007 02:02:15 +0200
+
 asterisk-prompt-fr-proformatique (20060911-2) unstable; urgency=low
 
   * Sounds are compatible with Asterisk 1.2, so relax recommendation to

Modified: asterisk-prompt-fr-proformatique/trunk/debian/copyright
===================================================================
--- asterisk-prompt-fr-proformatique/trunk/debian/copyright	2007-08-19 00:00:08 UTC (rev 4098)
+++ asterisk-prompt-fr-proformatique/trunk/debian/copyright	2007-08-19 00:15:00 UTC (rev 4099)
@@ -1,7 +1,7 @@
 This package was debianized by Lionel Elie Mamane <lmamane at debian.org> on
 Fri, 15 Jun 2007 19:59:50 +0200.
 
-It was downloaded from <http://xivo.fr/debian/prompt-fr-france-20060911.tgz>
+It was downloaded from <http://xivo.fr/debian/prompt-fr-france-*.tgz>
 
 Upstream:
 

Modified: asterisk-prompt-fr-proformatique/trunk/debian/rules
===================================================================
--- asterisk-prompt-fr-proformatique/trunk/debian/rules	2007-08-19 00:00:08 UTC (rev 4098)
+++ asterisk-prompt-fr-proformatique/trunk/debian/rules	2007-08-19 00:15:00 UTC (rev 4099)
@@ -9,6 +9,15 @@
 PKG_NAME:=asterisk-prompt-fr-proformatique
 LNG:=fr
 
+DEBSOURCE:=$(shell head -n 1 debian/changelog|sed -e 's/^\(\S\+\)\s.*/\1/')
+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$$//')
+
+FILENAME := $(DEBSOURCE)_$(UPVERSION).orig.tar.gz
+UPFILENAME := prompt-fr-france-$(UPVERSION).tgz
+URL := http://xivo.fr/debian/$(UPFILENAME)
+
 build: build-indep
 
 build-indep:
@@ -49,4 +58,15 @@
 
 binary: binary-indep binary-arch
 
+print-version:
+	@@echo "Source name:             $(DEBSOURCE)"
+	@@echo "Debian version:          $(DEBVERSION)"
+	@@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)
+
 .PHONY: clean binary-indep binary-arch binary install build build-indep




More information about the Pkg-voip-commits mailing list