[junit] 14/37: * debian/orig-tar.sh + Ease repackaging the junit zip by automatically, removing class and jar files. * Explain repackaging.

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Tue Oct 24 22:17:02 UTC 2017


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

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

commit 72f28c459783d2062506bccc2aef746384748d2b
Author: Kumar Appaiah <akumar at ee.iitm.ac.in>
Date:   Fri Nov 30 07:19:41 2007 +0000

    * debian/orig-tar.sh
      + Ease repackaging the junit zip by automatically,
        removing class and jar files.
    * Explain repackaging.
---
 debian/README.Debian-source | 10 ++++++++++
 debian/changelog            |  6 +++++-
 debian/orig-tar.sh          | 21 +++++++++++++++++++++
 debian/watch                |  2 +-
 4 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/debian/README.Debian-source b/debian/README.Debian-source
new file mode 100644
index 0000000..3975c8b
--- /dev/null
+++ b/debian/README.Debian-source
@@ -0,0 +1,10 @@
+JUnit for Debian
+----------------
+
+The upstream supplied tar.gz package contains prebuild libraries. So,
+the orig-tar.sh script is used to automate rebuilding the tarball.
+
+For step-by-step information on how the orig.tar.sh is obtained,
+please look at the orig-tar.sh present in this directory.
+
+ -- Kumar Appaiah <akumar at ee.iitm.ac.in>, Fri, 30 Nov 2007 12:50:43 +0530
diff --git a/debian/changelog b/debian/changelog
index 6ff0439..2a27ff1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,7 +5,11 @@ junit (3.8.1.1-8) UNRELEASED; urgency=low
   * debian/control:
     + Add Homepage field.
     + Add Vcs-Svn and Vcs-Browser.
-
+  * debian/orig-tar.sh
+    + Ease repackaging the junit zip by automatically,
+      removing class and jar files.
+  * Explain repackaging.
+  
   [ Michael Koch ]
   * Put junit-doc into doc section.
 
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..f4a3baf
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+DIR=junit-$2.orig
+TAR=../junit_$2.orig.tar.gz
+
+# clean up the upstream tarball
+unzip $3
+rm -f $3
+mv junit$2 $DIR
+GZIP=--best tar czf $TAR --exclude docs/api --exclude *.jar --exclude *.class $DIR
+rm -rf $DIR
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+    . .svn/deb-layout
+    mv $3 $origDir
+    echo "moved $3 to $origDir"
+fi
+
+exit 0
diff --git a/debian/watch b/debian/watch
index 3c32a41..b7db667 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,3 @@
 version=3
-http://sf.net/junit/junit(3\.[\d\.]*)\.zip
+http://sf.net/junit/junit(3\.[\d\.]*)\.zip debian debian/orig-tar.sh
 

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



More information about the pkg-java-commits mailing list