[libmatio] 09/48: remove zlib directory from orig tarball

Sébastien Villemot sebastien at debian.org
Fri Jan 15 16:48:20 UTC 2016


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

sebastien pushed a commit to branch master
in repository libmatio.

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

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

diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..60950bd
--- /dev/null
+++ b/debian/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/debian/rules b/debian/rules
index 96ad9b8..fd54d06 100755
--- a/debian/rules
+++ b/debian/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/debian/watch b/debian/watch
index d75653c..028bf2f 100644
--- a/debian/watch
+++ b/debian/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