[libmatio] 07/22: remove zlib directory from orig tarball

Sébastien Villemot sebastien at debian.org
Sat Jan 16 20:42:25 UTC 2016


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

sebastien pushed a commit to annotated tag debian/1.3.3-7
in repository libmatio.

commit 53afcd58bc0b0f2fdd68a762affb1ee2e59d0eaf
Author: Torsten Werner <twerner at debian.org>
Date:   Thu Apr 17 19:32:13 2008 +0000

    remove zlib directory from orig tarball
---
 orig-tar.sh | 17 +++++++++++++++++
 rules       |  3 +++
 watch       |  2 +-
 3 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/orig-tar.sh b/orig-tar.sh
new file mode 100755
index 0000000..60950bd
--- /dev/null
+++ b/orig-tar.sh
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+DIR=matio-*
+
+# clean up the upstream tarball
+tar xzf $3
+tar czf $3 --exclude '*/zlib/*' $DIR
+rm -rf $DIR
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+    . .svn/deb-layout
+    mv $3 $origDir
+    echo "moved $3 to $origDir"
+fi
+
diff --git a/rules b/rules
index 96ad9b8..fd54d06 100755
--- a/rules
+++ b/rules
@@ -5,3 +5,6 @@ include /usr/share/cdbs/1/class/autotools.mk
 
 DEB_CONFIGURE_NORMAL_ARGS += --enable-shared
 DEB_MAKE_BUILD_TARGET     := libmatio_la_LIBADD=-lz
+
+get-orig-source:
+	-uscan --upstream-version=0 --rename
diff --git a/watch b/watch
index d75653c..028bf2f 100644
--- a/watch
+++ b/watch
@@ -1,2 +1,2 @@
 version=3
-http://sf.net/matio/matio-(.*)\.tar\.gz
+http://sf.net/matio/matio-(.*)\.tar\.gz debian debian/orig-tar.sh

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libmatio.git



More information about the debian-science-commits mailing list