[Pkg-voip-commits] r7213 - /asterisk-gui/trunk/debian/rules

tzafrir-guest at alioth.debian.org tzafrir-guest at alioth.debian.org
Thu May 14 20:55:18 UTC 2009


Author: tzafrir-guest
Date: Thu May 14 20:55:18 2009
New Revision: 7213

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=7213
Log:
fix the get-orig-source target to use the SVN for now.

Modified:
    asterisk-gui/trunk/debian/rules

Modified: asterisk-gui/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-gui/trunk/debian/rules?rev=7213&op=diff
==============================================================================
--- asterisk-gui/trunk/debian/rules (original)
+++ asterisk-gui/trunk/debian/rules Thu May 14 20:55:18 2009
@@ -4,8 +4,11 @@
 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$$//')
-UPVERSIONMAJOR:=$(shell echo $(UPVERSION) | sed -re 's/(^[0-9]\.[0-9]).*/\1/')
-SHLIBS = $(PACKAGE) (>= $(UPVERSIONMAJOR))
+SVN_REV:=$(shell echo $(UPVERSION) | sed -e 's/^.*svn\.//')
+SVN_BRANCH:=branches/2.0
+SVN_URL:=http://svn.asterisk.org/svn/asterisk-gui/$(SVN_BRANCH)
+DIR_NAME:=$(PACKAGE)-$(UPVERSION)
+TARBALL:=$(PACKAGE)_$(UPVERSION).orig.tar.gz
 
 FILENAME := $(PACKAGE)_$(UPVERSION).orig.tar.gz
 URL := http://downloads.digium.com/pub/telephony/$(PACKAGE)/releases/$(PACKAGE)-$(UPVERSION).tar.gz
@@ -51,5 +54,10 @@
 get-orig-source:
 	@@dh_testdir
 	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
-	@@echo Downloading $(FILENAME) from $(URL) ...
-	@@wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
+	@@#echo Downloading $(FILENAME) from $(URL) ...
+	@@#wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
+	@echo "Exporting rev. $(SVN_REV) to $(TARBALL_DIR)/$(DIR_NAME)"
+	@svn export -q -r $(SVN_REV) $(SVN_URL) $(TARBALL_DIR)/$(DIR_NAME)
+	@tar czf ../tarballs/$(TARBALL) -C $(TARBALL_DIR) $(DIR_NAME)
+	@echo "Cleaning up..."
+	@rm -rf $(TARBALL_DIR)




More information about the Pkg-voip-commits mailing list