Commit 7afacfcc authored by Emmanuel Bourg's avatar Emmanuel Bourg

Track and download the new releases from GitHub

parent 73012926
......@@ -3,6 +3,7 @@ maven-clean-plugin (3.0.0-3) UNRELEASED; urgency=medium
* Standards-Version updated to 4.1.5
* Switch to debhelper level 11
* Use salsa.debian.org Vcs-* URLs
* Track and download the new releases from GitHub
-- Emmanuel Bourg <ebourg@apache.org> Mon, 30 Jul 2018 12:50:02 +0200
......
#!/bin/sh -e
VERSION=$2
TAR=../maven-clean-plugin_$VERSION.orig.tar.xz
DIR=maven-clean-plugin-$VERSION
TAG=$(echo "maven-clean-plugin-$VERSION" | sed -re's/~(alpha|beta)/-\1-/')
svn export http://svn.apache.org/repos/asf/maven/plugins/tags/${TAG}/ $DIR
XZ_OPT=--best tar -c -J -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
rm -rf $DIR ../$TAG
version=3
opts="uversionmangle=s/-(alpha|beta)-/~$1/" \
http://svn.apache.org/repos/asf/maven/plugins/tags/ \
maven-clean-plugin-(\d.*)/ debian debian/orig-tar.sh
version=4
opts="repack,compression=xz,uversionmangle=s/-(alpha|beta|M)-/~$1/" \
https://github.com/apache/maven-clean-plugin/tags .*/maven-clean-plugin-([\d\.]+).tar.gz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment