[modello-maven-plugin] 10/17: debian/watch: Watch and download the release tags from Github

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Jul 9 10:54:35 UTC 2015


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

ebourg-guest pushed a commit to branch master
in repository modello-maven-plugin.

commit 53816300a49cef97fffc44f21ef4a3c9afc6c0b5
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Wed Jul 8 17:49:00 2015 +0200

    debian/watch: Watch and download the release tags from Github
---
 debian/changelog   |  1 +
 debian/orig-tar.sh | 14 +++++---------
 debian/watch       |  4 +---
 3 files changed, 7 insertions(+), 12 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 986b1e8..25501e3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ modello-maven-plugin (1.4.1-2) UNRELEASED; urgency=medium
     - Use canonical URLs for the Vcs-* fields
     - Removed Michael Koch from the uploaders (Closes: #654119)
   * debian/copyright: Update to the Copyright Format 1.0
+  * debian/watch: Watch and download the release tags from Github
   * Use XZ compression for the upstream tarball
 
  -- Emmanuel Bourg <ebourg at apache.org>  Wed, 08 Jul 2015 16:31:12 +0200
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index bfd9850..bf3b927 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -3,14 +3,10 @@
 VERSION=$2
 TAR=../modello-maven-plugin_$VERSION.orig.tar.xz
 DIR=modello-maven-plugin-$VERSION
-TAG=$(echo "modello-$VERSION" | sed -re's/~(alpha|beta)/-\1-/')
 
-svn export http://svn.codehaus.org/modello/tags/${TAG}/modello-maven-plugin/ $DIR
-XZ_OPT=--best tar -c -J -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
-rm -rf $DIR ../$TAG
+mkdir -p $DIR
+tar -xf $3 --strip-components 1 -C $DIR
+mv $DIR/modello-maven-plugin $DIR/modello-maven-plugin-$VERSION
 
-# move to directory 'tarballs'
-if [ -r .svn/deb-layout ]; then
-  . .svn/deb-layout
-  mv $TAR $origDir && echo "moved $TAR to $origDir"
-fi
+XZ_OPT=--best tar -c -J -v -f $TAR --exclude '*.jar' --exclude '*.class' -C $DIR $DIR
+rm -rf $DIR $3
diff --git a/debian/watch b/debian/watch
index ac84e12..ee2a9b3 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,2 @@
 version=3
-opts="uversionmangle=s/-(alpha|beta)-/~$1/" \
-  http://svn.codehaus.org/modello/tags/ \
-  modello-(\d.*)/ debian debian/orig-tar.sh
+https://github.com/sonatype/modello/releases .*/modello-(\d.*).tar.gz debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list