[sqljet] 01/06: Added a repack script to clean the upstream tarball
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Tue Oct 14 12:52:43 BST 2014
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository sqljet.
commit 2bef0378487081dbf1f8736ebd39cbefe688c6a8
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Tue Oct 14 09:56:50 2014 +0200
Added a repack script to clean the upstream tarball
---
debian/changelog | 1 +
debian/orig-tar.sh | 19 +++++++++++++++++++
debian/rules | 3 +++
debian/watch | 2 +-
4 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 67b494d..22f4651 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ sqljet (1.1.4-3) UNRELEASED; urgency=medium
* Team upload.
* Standards-Version updated to 3.9.6 (no changes)
* Use canonical URLs for the Vcs-* fields
+ * Added a repack script to clean the upstream tarball
-- Emmanuel Bourg <ebourg at apache.org> Tue, 14 Oct 2014 08:29:03 +0200
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..9d9f3a5
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+VERSION=$2
+TAR=../sqljet_$VERSION.orig.tar.xz
+DIR=sqljet-$VERSION
+
+unzip $3
+rm $3
+
+XZ_OPT==--best tar -c -J -v -f $TAR \
+ --exclude 'SqlLexer.java' \
+ --exclude 'SqlParser.java' \
+ --exclude 'Sql.tokens' \
+ --exclude 'gradlew*' \
+ --exclude 'gradle/wrapper' \
+ --exclude '*.tar.gz' \
+ --exclude 'prettify.*' \
+ $DIR
+rm -Rf $DIR
diff --git a/debian/rules b/debian/rules
index c731cc8..27a7b0a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,3 +28,6 @@ override_dh_auto_clean:
rm -f sqljet/src/main/java/org/tmatesoft/sqljet/core/internal/lang/Sql.tokens
rm -f sqljet/src/main/java/org/tmatesoft/sqljet/core/internal/lang/SqlLexer.java
rm -f sqljet/src/main/java/org/tmatesoft/sqljet/core/internal/lang/SqlParser.java
+
+get-orig-source:
+ uscan --download-current-version --force-download --no-symlink
diff --git a/debian/watch b/debian/watch
index 78c8851..c100a52 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,2 @@
version=3
-http://sqljet.com files/sqljet-([\d\.]+)-src.zip
+http://sqljet.com files/sqljet-([\d\.]+)-src.zip debian debian/orig-tar.sh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/sqljet.git
More information about the pkg-java-commits
mailing list