[Debian-med-packaging] [SCM] picard-tools branch, master, updated. upstream/1.22-5-g1bfdde9

Charles Plessy plessy at debian.org
Wed Jun 23 08:06:27 UTC 2010


The following commit has been merged in the master branch:
commit 7a16e9af52367eacb1b06bc0355efefeca92ca24
Author: Charles Plessy <plessy at debian.org>
Date:   Wed Jun 23 16:53:20 2010 +0900

    get-orig-source target adapted from ‘http://wiki.debian.org/SandroTosi/Svn_get-orig-source’.

diff --git a/debian/README.source b/debian/README.source
index 76841a9..8005644 100644
--- a/debian/README.source
+++ b/debian/README.source
@@ -1,6 +1,5 @@
 The original source was packaged from the upstream subversion
-repository:
-svn co https://picard.svn.sourceforge.net/svnroot/picard
+repository: debian/rules get-orig-source
 
 Binary files in lib/* have been removed.
 
diff --git a/debian/rules b/debian/rules
index 9ae5268..30c6aff 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,3 +4,20 @@ export DH_OPTIONS
 
 %:
 	dh  $@
+
+# Adapted from http://wiki.debian.org/SandroTosi/Svn_get-orig-source
+PACKAGE =	picard-tools
+SRC_VERSION =	$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
+SRC_DIR =	$(PACKAGE)-$(SRC_VERSION).orig
+TARBALL =	$(PACKAGE)_$(SRC_VERSION).orig.tar.bz2
+SVN_REPOS =	http://picard.svn.sourceforge.net/svnroot/picard
+.PHONY: get-orig-source
+get-orig-source:
+	rm -rf get-orig-source $(TARBALL)
+	mkdir get-orig-source
+	svn export $(SVN_REVISION) $(SVN_REPOS)/tags/$(SRC_VERSION) get-orig-source/$(SRC_DIR)
+	# Removing convenience binary jar files.
+	rm -r get-orig-source/$(SRC_DIR)/lib/*
+	BZIP2='--best' tar cjf $(TARBALL) -C get-orig-source $(SRC_DIR)
+	rm -r get-orig-source
+	@echo "  "$(TARBALL)" created; move it to the right destination to build the package"

-- 
manipulate SAM and BAM files



More information about the Debian-med-packaging mailing list