[med-svn] [kineticstools] 01/05: Create get-orig-source script to download upstream source

Andreas Tille tille at debian.org
Sat Dec 24 14:11:27 UTC 2016


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

tille pushed a commit to branch master
in repository kineticstools.

commit 26bf6dc8c25733354a28dfcf50faba3c9fc53818
Author: Andreas Tille <tille at debian.org>
Date:   Sat Dec 24 14:41:07 2016 +0100

    Create get-orig-source script to download upstream source
---
 debian/changelog       |  8 ++++++++
 debian/get-orig-source | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 229d4df..138c35a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+kineticstools (0.6.1+dfsg-1) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * New upstream version
+  * debian/get-orig-source
+
+ -- Andreas Tille <tille at debian.org>  Sat, 24 Dec 2016 08:34:57 +0100
+
 kineticstools (0.5.2+dfsg-2) unstable; urgency=low
 
   * Don't install spurious python package "bin" (Closes: #831218)
diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..2a931ae
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+set -ex
+
+PKGDIR="$PWD"
+
+# 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)
+NEW_VERSION=$(dpkg-parsechangelog -SVersion | sed 's/\-[0-9]*$//')
+new_package="${SPKG}-${NEW_VERSION}"
+
+clean () {
+    rm -rf ../${new_package} ../${SPKG}-${NEW_VERSION}.tar.gz
+}
+
+trap clean EXIT
+
+mkdir -p tarballs
+cd ../tarballs
+# Now ${SPKG}_${NEW_VERSION}.orig.tar.xz is upstream tarball
+rm -f ${SPKG}_${NEW_VERSION}.orig.tar.*
+
+echo "Cloning ${SPKG} version ${NEW_VERSION}"
+git clone \
+    https://github.com/PacificBiosciences/kineticsTools.git $new_package
+
+cd $new_package \
+    && find -name ".git*" -exec rm -rf {} + \
+    && cd ..
+
+tar --exclude-vcs --owner=root --group=root --mode=a+rX -caf ${SPKG}-${NEW_VERSION}.tar.xz ${new_package}

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



More information about the debian-med-commit mailing list