[Python-apps-commits] r3271 - in packages/vitables/trunk/debian (get-orig-source.sh rules)

xnox-guest at users.alioth.debian.org xnox-guest at users.alioth.debian.org
Tue Jul 14 20:23:45 UTC 2009


    Date: Tuesday, July 14, 2009 @ 20:23:41
  Author: xnox-guest
Revision: 3271

Moved get-orig-source from debian/rules to standalone script.

Added:
  packages/vitables/trunk/debian/get-orig-source.sh
Modified:
  packages/vitables/trunk/debian/rules

Added: packages/vitables/trunk/debian/get-orig-source.sh
===================================================================
--- packages/vitables/trunk/debian/get-orig-source.sh	                        (rev 0)
+++ packages/vitables/trunk/debian/get-orig-source.sh	2009-07-14 20:23:41 UTC (rev 3271)
@@ -0,0 +1,21 @@
+#! /bin/sh
+CUR_DIR=$(pwd)
+#hg revno 96
+REV_ID=e80739d79701
+NAME=vitables-$REV_ID
+TEMP_DIR=$(mktemp -d -t vitables-XXXXXX)
+cd $TEMP_DIR
+wget -q http://hg.berlios.de/repos/vitables/archive/$REV_ID.tar.gz
+tar -xf $REV_ID.tar.gz
+cd $NAME
+sed -i "s/.png/.png *.svg/; s/usersguide.pdf/fop_conf.xml/" MANIFEST.in
+sed -i "230s/\(.*\)/# \1/p; 231s/\(.*\)/# \1/p" setup.py
+echo -e "include resources.qrc \nrecursive-include icons * \n\
+recursive-include vitables/queries *.ui\nrecursive-include vitables/preferences *.ui" \
+    >> MANIFEST.in
+sed -i "/^setup/s/\(ViTables\)/vitables/" setup.py
+make clean
+python setup.py sdist
+mv dist/*.tar.gz $CUR_DIR/vitables_2.0+hg96+dfsg.orig.tar.gz
+cd $CUR_DIR
+rm -rf $TEMP_DIR


Property changes on: packages/vitables/trunk/debian/get-orig-source.sh
___________________________________________________________________
Added: svn:executable
   + *

Modified: packages/vitables/trunk/debian/rules
===================================================================
--- packages/vitables/trunk/debian/rules	2009-07-12 20:35:26 UTC (rev 3270)
+++ packages/vitables/trunk/debian/rules	2009-07-14 20:23:41 UTC (rev 3271)
@@ -27,25 +27,7 @@
 	dh_auto_clean
 	make -C doc clean
 
-#these define simple-expanded variables only for get-orig-source target
-#hg revno 96
-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:
+	$(dir $(_))/get-orig-source.sh
 
-	cd $(TEMP_DIR) && wget -q http://hg.berlios.de/repos/vitables/archive/$(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\
-recursive-include vitables/queries *.ui\nrecursive-include vitables/preferences *.ui" \
-	>> $(TEMP_DIR)/$(name)/MANIFEST.in
-	sed -i "/^setup/s/\(ViTables\)/vitables/" $(TEMP_DIR)/$(name)/setup.py 
-	(cd $(TEMP_DIR)/$(name)/ && make clean && python setup.py sdist)
-	mv $(TEMP_DIR)/$(name)/dist/*.tar.gz vitables_2.0+hg96+dfsg.orig.tar.gz
-	rm -r $(TEMP_DIR)
-
 .PHONY: get-orig-source




More information about the Python-apps-commits mailing list