[Python-apps-commits] r3021 - in packages/vitables/trunk/debian (rules)
xnox-guest at users.alioth.debian.org
xnox-guest at users.alioth.debian.org
Sat May 30 16:54:21 UTC 2009
Date: Saturday, May 30, 2009 @ 16:54:21
Author: xnox-guest
Revision: 3021
* Switched to using per-target variables & tar -C doesn't work with -f, using cd instead.
Modified:
packages/vitables/trunk/debian/rules
Modified: packages/vitables/trunk/debian/rules
===================================================================
--- packages/vitables/trunk/debian/rules 2009-05-30 03:20:13 UTC (rev 3020)
+++ packages/vitables/trunk/debian/rules 2009-05-30 16:54:21 UTC (rev 3021)
@@ -27,16 +27,17 @@
dh_auto_clean
make -C doc clean
+#these define simple-expanded variables only for get-orig-source target
#hg revno 96
-rev_id = e80739d79701
-name = vitables-$(rev_id)
-TEMP_DIR = $(shell mktemp -d)
+get-orig-source: rev_id :=e80739d79701
+get-orig-source: name := vitables-$(rev_id)
+get-orig-source: TEMP_DIR := $(shell mktemp -d)
#ugly but can be called from any directory
get-orig-source:
cd $(TEMP_DIR) && wget -q http://hg.berlios.de/repos/vitables/archive/$(rev_id).tar.gz
- tar -C $(TEMP_DIR) -xf $(rev_id).tar.gz
+ cd $(TEMP_DIR) && tar -xf $(rev_id).tar.gz
sed -i "s/.png/.png *.svg/; s/usersguide.pdf/fop_conf.xml/" $(TEMP_DIR)/$(name)/MANIFEST.in
sed -i "230s/\(.*\)/# \1/p; 231s/\(.*\)/# \1/p" $(TEMP_DIR)/$(name)/setup.py
echo "include resources.qrc \nrecursive-include icons * \n\
More information about the Python-apps-commits
mailing list