[Pkg-cli-apps-commits] r4465 - /packages/bansheelyricsplugin/trunk/debian/rules

hanska-guest at users.alioth.debian.org hanska-guest at users.alioth.debian.org
Wed Jan 28 22:15:11 UTC 2009


Author: hanska-guest
Date: Wed Jan 28 22:15:11 2009
New Revision: 4465

URL: http://svn.debian.org/wsvn/pkg-cli-apps/?sc=1&rev=4465
Log:
Better use of uscan

Modified:
    packages/bansheelyricsplugin/trunk/debian/rules

Modified: packages/bansheelyricsplugin/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-cli-apps/packages/bansheelyricsplugin/trunk/debian/rules?rev=4465&op=diff
==============================================================================
--- packages/bansheelyricsplugin/trunk/debian/rules (original)
+++ packages/bansheelyricsplugin/trunk/debian/rules Wed Jan 28 22:15:11 2009
@@ -8,14 +8,13 @@
 # Path to the debian directory
 DEBIAN_DIR := $(dir $(firstword $(MAKEFILE_LIST)))
 SOURCE_DIR := $(DEBIAN_DIR)/..
-UPSTREAM_VERSION ?= $(shell cd $(SOURCE_DIR) && \
-    uscan --dehs | \
+UPSTREAM_VERSION ?= $(shell uscan --dehs $(SOURCE_DIR) | \
     sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
 
 # get orig .tar.bz2, repack into .tar.gz, removing .svn in the process
 get-orig-source:
 	rm -f $(SOURCE_DIR)/../bansheelyricsplugin_$(UPSTREAM_VERSION).orig.*
-	cd $(SOURCE_DIR) && uscan --force-download
+	uscan --force-download $(SOURCE_DIR)
 	tar -xjf $(SOURCE_DIR)/../BansheeLyricsPlugin$(UPSTREAM_VERSION).tar.bz2
 	mv BansheeLyricsPlugin bansheelyricsplugin-$(UPSTREAM_VERSION).orig
 	GZIP=-9fn tar --exclude=.svn --exclude=autom4te.cache --exclude=*.mdb -czf \




More information about the Pkg-cli-apps-commits mailing list