[med-svn] [SCM] clinica branch, master, updated. 50fcd25af088d809878c3780d68e08c944e30bce

Leonardo Robol leo at robol.it
Tue Jan 10 15:49:46 UTC 2012


The following commit has been merged in the master branch:
commit 50fcd25af088d809878c3780d68e08c944e30bce
Author: Leonardo Robol <leo at robol.it>
Date:   Tue Jan 10 10:52:36 2012 +0100

    Added get-orig-source target to generate the repacked tarball.

diff --git a/debian/rules b/debian/rules
index 7bb75b6..79f1402 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,9 +2,35 @@
 # -*- makefile -*-
 # debian/rules for clinica
 
+LATESTVERSION=0.2.1
+LATESTRELEASE=http://launchpad.net/clinica-project/stable/$(LATESTVERSION)/+download/clinica-$(LATESTVERSION).tar.bz2
+TARFILE=clinica-$(LATESTVERSION).tar.bz2
+
 %:
 	dh $@
 
+get-orig-source:
+	# Removing old temporary files, if present, 
+	# and then downloading the latest release,
+	# unpacking waf to be compliant with DFSG. 
+	rm -rf get-orig-source
+	mkdir get-orig-source
+	cd get-orig-source; \
+	wget "$(LATESTRELEASE)"; \
+	tar xjf $(TARFILE); \
+	cd clinica-$(LATESTVERSION); \
+	echo "Unpacking waf.."; \
+	./waf --help >/dev/null ; mv .waf-*/waflib waflib ; sed -i "/^#==>/,/#<==/ d" waf ; rmdir .waf-*; \
+	find . -name \*.pyc -delete; \
+	cd ..; \
+	rm $(TARFILE); \
+	tar cjf "$(TARFILE)" "clinica-$(LATESTVERSION)/"; \
+	mv "$(TARFILE)" ..
+
+	rm get-orig-source -rf
+	
+	
+
 clean:
 	dh $@
 	./waf --nocache distclean

-- 
Simple medical records manager



More information about the debian-med-commit mailing list