[Pkg-voip-commits] r8109 - /asterisk-sounds/asterisk-extra-sounds/debian/rules

tzafrir-guest at alioth.debian.org tzafrir-guest at alioth.debian.org
Sun Feb 21 11:31:37 UTC 2010


Author: tzafrir-guest
Date: Sun Feb 21 11:31:37 2010
New Revision: 8109

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=8109
Log:
Get package and version from the changelog.

Modified:
    asterisk-sounds/asterisk-extra-sounds/debian/rules

Modified: asterisk-sounds/asterisk-extra-sounds/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-sounds/asterisk-extra-sounds/debian/rules?rev=8109&op=diff
==============================================================================
--- asterisk-sounds/asterisk-extra-sounds/debian/rules (original)
+++ asterisk-sounds/asterisk-extra-sounds/debian/rules Sun Feb 21 11:31:37 2010
@@ -1,9 +1,9 @@
 #!/usr/bin/make -f
 
 BASE_URL=http://downloads.asterisk.org/pub/telephony/sounds/releases/
-# FIXME: get version from changelog
-VERSION=1.4.10
-PACKAGE=asterisk-extra-sounds
+PACKAGE=$(shell sed -e '2,$$d' -e 's/ .*//' debian/changelog)
+VERSION=$(shell sed -e '2,$$d' -e 's/^[^(]*(\([^-]*\)-.*)*)*/\1/' debian/changelog)
+LANGS=en fr
 TMPDIR=tmp
 # or . if you prefer
 TARGET_DIR=..
@@ -12,8 +12,12 @@
 	dh $@
 
 
+print-version:
+	@echo package: $(PACKAGE)
+	@echo version: $(VERSION)
+
 get-orig-source:
-	cd $(TARGET_DIR); for lang in en fr; do for format in gsm wav g722; do \
+	cd $(TARGET_DIR); for lang in $(LANGS); do for format in gsm wav g722; do \
 	  wget -q -c $(BASE_URL)/$(PACKAGE)-$$lang-$$format-$(VERSION).tar.gz; \
 	  ln -sf $(PACKAGE)-$$lang-$$format-$(VERSION).tar.gz \
 	    $(PACKAGE)_$(VERSION).orig-$$lang-$$format.tar.gz; \




More information about the Pkg-voip-commits mailing list