[med-svn] [libpll] 01/04: Use Github code rather than download

Andreas Tille tille at debian.org
Wed May 3 13:17:44 UTC 2017


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

tille pushed a commit to tag debian/0.0+20160909-1
in repository libpll.

commit 51a15472d3310595068cf8de1a5a741f2994bbe5
Author: Andreas Tille <tille at debian.org>
Date:   Tue Apr 25 17:53:39 2017 +0200

    Use Github code rather than download
---
 debian/changelog       |  2 +-
 debian/get-orig-source | 25 +++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 53f37b8..27b60aa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-libpll (0.0.20170317-1) UNRELEASED; urgency=low
+libpll (0.0+20170317-1) UNRELEASED; urgency=low
 
   * Initial release (Closes: #<bug>)
 
diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..3b911c6
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,25 @@
+#!/bin/sh -e
+
+COMPRESS=xz
+
+NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+MVERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/^\([0-9\.]\+\)[+~][-0-9]\+$/\1/'`
+
+mkdir -p ../tarballs
+cd ../tarballs
+# need to clean up the tarballs dir first because upstream tarball might
+# contain a directory with unpredictable name
+rm -rf *
+git clone --quiet https://github.com/xflouris/libpll
+cd $NAME
+VERSION=${MVERSION}+`date -d @$(git show --format="%at" | head -n1) +%Y%m%d`
+# for esthetical reasons set file timestamps (if git-restore-mtime is installed)
+git restore-mtime || true
+cd ..
+TARDIR=${NAME}-${VERSION}
+mv ${NAME} ${TARDIR}
+rm -rf ${TARDIR}/.git
+rm -f ${TARDIR}/jars/*
+
+GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
+rm -rf ${TARDIR}

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



More information about the debian-med-commit mailing list