[olap4j] 10/19: Use XZ compression for the upstream tarball
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Wed Oct 21 09:19:07 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository olap4j.
commit 86ef681e716a40500e091800ca21ec0e92f21a36
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Tue Oct 20 16:27:24 2015 +0200
Use XZ compression for the upstream tarball
---
debian/changelog | 1 +
debian/orig-tar.exclude | 11 +++++++++++
debian/orig-tar.sh | 13 +++++++++----
3 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 5e26c73..f361506 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ olap4j (1.0.1.500-3) UNRELEASED; urgency=medium
* Team upload.
* debian/control:
- Standards-Version updated to 3.9.6 (no changes)
+ * Use XZ compression for the upstream tarball
* Moved the package to Git
* Switch to debhelper level 9
diff --git a/debian/orig-tar.exclude b/debian/orig-tar.exclude
index b839306..fd6a4b1 100644
--- a/debian/orig-tar.exclude
+++ b/debian/orig-tar.exclude
@@ -3,3 +3,14 @@ foodmart/*
*.vsd
*.xls
xmla-cache/*
+.settings
+.classpath
+.project
+VERSION.txt
+src/org/olap4j/driver/xmla/XmlaOlap4jDriverVersion.java
+src/org/olap4j/mdx/parser/impl/MdxParserImpl.java
+src/org/olap4j/mdx/parser/impl/MdxParserImplTokenManager.java
+src/org/olap4j/mdx/parser/impl/ParseException.java
+src/org/olap4j/mdx/parser/impl/SimpleCharStream.java
+src/org/olap4j/mdx/parser/impl/Token.java
+src/org/olap4j/mdx/parser/impl/TokenMgrError.java
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 3b4f442..6ee2074 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -3,10 +3,13 @@
# Extract and repack upstream source (zip in upstream zip package)
# $2 = version
# $3 = file
-DIR=olap4j-$2
-TAR=olap4j_$2.orig.tar.gz
-# Repack upstream source to tar.gz
+PACKAGE=$(dpkg-parsechangelog -S Source)
+VERSION=$2
+DIR=${PACKAGE}-${VERSION}
+TAR=../${PACKAGE}_${VERSION}.orig.tar.xz
+
+# Repack upstream source to tar.xz
mkdir $DIR
(
cd $DIR
@@ -15,5 +18,7 @@ unzip -d . olap4j-*-src.zip
mv olap4j-*/* .
rm olap4j-*-src.zip
)
-GZIP=--best tar czf $TAR -X debian/orig-tar.exclude $DIR
+rm $3
+
+XZ_OPT=--best tar cJvf $TAR -X debian/orig-tar.exclude $DIR
rm -rf $DIR
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/olap4j.git
More information about the pkg-java-commits
mailing list