[jmock] 10/48: * Update debian/watch to rename the jar to .zip to be able to repack it to a .tar.gz source tarball

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Sep 4 09:56:32 UTC 2017


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

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

commit c6ff1ff83b355c131321bcc69fbfb7c840c64ae2
Author: Ludovic Claude <ludovic.claude at laposte.net>
Date:   Tue Jul 14 00:27:49 2009 +0000

    * Update debian/watch to rename the jar to .zip to be able to repack it to a .tar.gz source tarball
---
 debian/orig-tar.sh | 21 +++++++++++++++++++++
 debian/rules       |  2 +-
 debian/watch       |  4 ++--
 3 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..99a694f
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+
+# $2 = version
+VERSION=$2
+ZIP=$3
+TAR=../jmock_$VERSION.orig.tar.gz
+DIR=jmock-$VERSION.orig
+
+# clean up the upstream tarball
+unzip $ZIP -d tmp > /dev/null
+mv tmp/jmock-$VERSION $DIR
+GZIP=--best tar -c -z -f $TAR --exclude '*.jar' $DIR
+rm -rf $DIR tmp
+rm $ZIP
+
+# 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/rules b/debian/rules
index 69403bb..cb11c93 100755
--- a/debian/rules
+++ b/debian/rules
@@ -72,5 +72,5 @@ get-orig-pom:
 	wget -O debian/pom.xml http://repository.sonatype.org/service/local/repositories/central/content/jmock/jmock/$(DEB_UPSTREAM_VERSION)/jmock-$(DEB_UPSTREAM_VERSION).pom
 
 get-orig-source:
-	-uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename --repack
+	-uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
 
diff --git a/debian/watch b/debian/watch
index 41e58c9..3261da1 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,3 @@
 version=3
-opts=filenamemangle=s/\.jar/.zip/ \
- http://dist.codehaus.org/jmock/distributions/jmock-([\d.]+)-src\.jar
+http://dist.codehaus.org/jmock/distributions/jmock-([\d.]+)-src\.jar debian debian/orig-tar.sh
+

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



More information about the pkg-java-commits mailing list