[med-svn] [pbdagcon] 01/12: Add draft get-orig-source script

Afif Elghraoui afif at moszumanska.debian.org
Wed Dec 21 09:26:48 UTC 2016


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

afif pushed a commit to branch master
in repository pbdagcon.

commit d191671c37191f28edf1b165378ed5fb23be8f1d
Author: Afif Elghraoui <afif at debian.org>
Date:   Tue Dec 20 21:58:14 2016 -0800

    Add draft get-orig-source script
---
 debian/get-orig-source | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..ed61589
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,28 @@
+#!/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]*$//')
+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 \
+    https://github.com/PacificBiosciences/pbdagcon.git $new_package
+
+cd $new_package \
+    && make update-submodule \
+    && rm -rf blasr_libcpp \
+    && find -name ".git*" -exec rm -rf {} + \
+    && cd $PKGDIR
+
+tar -czf ../${SPKG}-${NEW_VERSION}.tar.gz ../${new_package}
+mk-origtargz --compression xz ../${SPKG}-${NEW_VERSION}.tar.gz
+rm -rf ../${new_package} ../${SPKG}-${NEW_VERSION}.tar

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



More information about the debian-med-commit mailing list