[med-svn] [falcon] 02/08: Track FALCON-Integrate for releases, and bundle supporting code

Afif Elghraoui afif at moszumanska.debian.org
Sun Oct 23 12:18:47 UTC 2016


This is an automated email from the git hooks/post-receive script.

afif pushed a commit to branch master
in repository falcon.

commit 2a3dcd3adbbb44bfe15042bee85baecda7fb8e77
Author: Afif Elghraoui <afif at debian.org>
Date:   Wed Oct 12 01:53:03 2016 -0700

    Track FALCON-Integrate for releases, and bundle supporting code
    
    PacBio maintains forks of daligner and other dazzler tools.
    We need to use them for FALCON to be functional. The integration
    repository at least is tagged, so we can also keep up with releases.
---
 debian/get-orig-source | 41 +++++++++++++++++++++++++++++++++++++++++
 debian/watch           |  8 ++++++--
 2 files changed, 47 insertions(+), 2 deletions(-)

diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..7ce9a14
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+# This is based on code from https://bugs.debian.org/748474
+
+while [ "$1" ];
+do
+    case $1 in
+	--upstream-version|-v)
+	    shift
+	    NEW_VERSION="$1"
+	    ;;
+	--force-bad-version|-b|--find|-f)
+	    :
+	    ;;
+    esac
+    shift
+done
+
+# ignore <path> and rely on ../ being the path to the orig.tar.xz
+# using source package name $SPKG from debian/changelog
+# This makes it more robust for newer uupdate in future
+SPKG=$(dpkg-parsechangelog -SSource)
+cd ..
+# Now ${SPKG}_${NEW_VERSION}.orig.tar.xz is upstream tarball
+new_package="${SPKG}-${NEW_VERSION}"
+rm -f ${SPKG}_${NEW_VERSION}.orig.tar.*
+
+echo "Cloning ${SPKG} version ${NEW_VERSION}"
+git clone \
+    --branch ${NEW_VERSION} \
+    https://github.com/PacificBiosciences/FALCON-integrate.git $new_package
+
+cd $new_package \
+    && git describe --tags \
+    && make init \
+    && find -name ".git*" -exec rm -rf {} +
+cd ..
+
+# make any modification to files in ${SPKG}-${NEW_VERSION}
+tar --xz -cf ${SPKG}_${NEW_VERSION}.orig.tar.xz ${new_package}
+rm -rf ${new_package}
diff --git a/debian/watch b/debian/watch
index 763d56c..c869a4c 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,7 @@
-version=3
+version=4
 
-# There are no formal upstream releases
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%falcon-$1.tar.gz%" \
+	https://github.com/PacificBiosciences/FALCON-integrate/tags \
+	(?:.*?/)?v?(\d[\d.]*)\.tar\.gz \
+	debian \
+	debian/get-orig-source

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/falcon.git



More information about the debian-med-commit mailing list