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

bengen pushed a commit to branch master
in repository ocaml-re2.

commit 0e6aef2a1500517ea30930833f878c8a0aebb452
Author: Hilko Bengen <ben...@debian.org>
Date:   Fri Jan 22 01:22:21 2016 +0100

    Update watch file, add script to remove unneeded libre2 sources
---
 debian/orig-tar.sh | 16 ++++++++++++++++
 debian/watch       |  5 +++--
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..2c69194
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+VERSION=$2
+FILE=$3
+
+NEWVERSION=${VERSION}+dfsg
+NEWFILE=../ocaml-re2_${NEWVERSION}.orig.tar.xz
+
+echo "Generating ${NEWFILE} ..."
+zcat $FILE \
+    | tar --wildcards --delete '*/libre2' \
+    | xz -c > ${NEWFILE}.t
+
+mv ${NEWFILE}.t ${NEWFILE}
diff --git a/debian/watch b/debian/watch
index 97472fe..953e9f2 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,4 @@
 version=3
-opts="uversionmangle=s/rc/~rc/" \
-https://github.com/janestreet/re2/releases .*/archive/(.*)\.tar\.gz
+opts="dversionmangle=s/\+dfsg//,uversionmangle=s/rc/~rc/" \
+    https://github.com/janestreet/re2/releases .*/archive/(.*)\.tar\.gz \
+    debian debian/orig-tar.sh

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-ocaml-maint/packages/ocaml-re2.git

_______________________________________________
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits

Reply via email to