[antlr3] 01/01: debian/watch: Watch the release tags on Github

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Jul 17 13:53:12 UTC 2015


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

ebourg-guest pushed a commit to branch master
in repository antlr3.

commit 63a58c3d45fd4a0c0ae340d58749d58d03169aa1
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Fri Jul 17 15:52:30 2015 +0200

    debian/watch: Watch the release tags on Github
---
 debian/changelog   |  7 +++++++
 debian/orig-tar.sh | 23 +++++++++++------------
 debian/watch       |  2 +-
 3 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 39a5bdc..f018aea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+antlr3 (3.2-12) UNRELEASED; urgency=medium
+
+  * debian/watch: Watch the release tags on Github
+  * Use XZ compression for the upstream tarball
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Fri, 17 Jul 2015 15:48:59 +0200
+
 antlr3 (3.2-11) unstable; urgency=medium
 
   * Team upload.
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 48652ce..5d937d7 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -1,20 +1,19 @@
-#!/bin/sh -e
+#!/bin/bash
 
-TAR=../antlr3_$2.orig.tar.gz
+TAR=../antlr3_$2.orig.tar.xz
 DIR=antlr-$2
 ORIG_TAR=$3
 
-tar -x -z -v -f $ORIG_TAR
+mkdir -p $DIR
+tar -xf $ORIG_TAR --strip-components=1 -C $DIR
+
+pushd $DIR/runtime
+shopt -s extglob
+#cd $DIR/runtime && rm -Rfv !(Java) && cd ../..
+rm -Rfv !(Java)
+popd
 
 find $DIR -name ".*" -exec rm '{}' \;
 rm -f $TAR
-tar -c -z -f $TAR $DIR
+XZ_OPT=--best tar -c -v -J -f $TAR $DIR
 rm -rf $DIR
-
-# move to directory 'tarballs'
-if [ -r .svn/deb-layout ]; then
-  . .svn/deb-layout
-  mv $TAR $origDir
-  echo "moved $TAR to $origDir"
-fi
-
diff --git a/debian/watch b/debian/watch
index ff32c0c..d683ec4 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,2 @@
 version=3
-http://www.antlr3.org/download/antlr-(.*)\.tar\.gz debian debian/orig-tar.sh
+https://github.com/antlr/antlr3/tags .*/(?:antlr-)?([\d\.]+).tar.gz debian debian/orig-tar.sh

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/antlr3.git



More information about the pkg-java-commits mailing list