[SCM] mixxx/master: Add get-orig-source target.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Thu Sep 23 08:47:18 UTC 2010


The following commit has been merged in the master branch:
commit 3ceeb9bb0734e8fb602b852c29d0a0fc43a8ad60
Author: Alessio Treglia <alessio at debian.org>
Date:   Thu Sep 23 10:45:28 2010 +0200

    Add get-orig-source target.

diff --git a/debian/rules b/debian/rules
index bb14da5..2770e59 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,10 @@
 #!/usr/bin/make -f
 
 SCONS_OPTS = install_root=$(CURDIR)/debian/tmp/usr qtdir=/usr/share/qt4 prefix=/usr
+# Path to the debian directory
+DEBIAN_DIR := $(shell echo ${MAKEFILE_LIST} | awk '{print $$1}' | xargs dirname )
+UPSTREAM_VERSION ?=$(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
+PACKAGE = mixxx
 
 %:
 	dh $@
@@ -23,4 +27,19 @@ override_dh_auto_install:
 	find $(CURDIR)/debian/tmp \( -name COPYING -o -name Thumbs.db \
 		-o -name shifter.sh -o -name '*.xsl' -o -name '*.php' \) \
 		-exec rm -f {} \;
-	find $(CURDIR)/debian/tmp -name '*.js' -exec chmod -x {} \; 
+	find $(CURDIR)/debian/tmp -name '*.js' -exec chmod -x {} \;
+
+get-orig-source:
+	cd $(DEBIAN_DIR)/.. && uscan --rename --force-download
+	tar xf ../$(PACKAGE)_$(UPSTREAM_VERSION).orig.tar.gz
+	rm ../$(PACKAGE)_$(UPSTREAM_VERSION).orig.tar.gz
+	mv $(PACKAGE)-$(UPSTREAM_VERSION) $(PACKAGE)-$(UPSTREAM_VERSION)~dfsg
+	tar cf ../$(PACKAGE)_$(UPSTREAM_VERSION)~dfsg.orig.tar \
+		--exclude=res/skins/Deere* \
+		--exclude=res/skins/LateNight* \
+		--exclude=res/skins/Phoney* \
+		--exclude=res/skins/Shade* \
+	$(PACKAGE)-$(UPSTREAM_VERSION)~dfsg
+	gzip -9fn ../$(PACKAGE)_$(UPSTREAM_VERSION)~dfsg.orig.tar
+	rm -r $(PACKAGE)-$(UPSTREAM_VERSION)~dfsg
+

-- 
mixxx packaging



More information about the pkg-multimedia-commits mailing list