[lucene4.10] 06/06: Reworked debian/watch, debian/orig-tar.sh
Hilko Bengen
bengen at moszumanska.debian.org
Sun Apr 12 17:35:30 UTC 2015
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch master
in repository lucene4.10.
commit e148e4f5deabb3aa12bd7a2f7eaec042defcf969
Author: Hilko Bengen <bengen at debian.org>
Date: Sun Apr 12 19:32:46 2015 +0200
Reworked debian/watch, debian/orig-tar.sh
- "Newest version on remote site is $FOO+dfsg" is misleading.
- Compress +dfsg tarball using xz, tell user about the generated name.
---
debian/orig-tar.sh | 10 +++++++---
debian/watch | 2 +-
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 3ba7e45..653c7d8 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -2,11 +2,15 @@
set -e
-# VERSION=$2
+VERSION=$2
FILE=$3
+NEWVERSION=${VERSION}+dfsg
+NEWFILE=../lucene-4.10_${NEWVERSION}.orig.tar.xz
+
+echo "Generating ${NEWFILE} ..."
zcat $FILE \
| tar --wildcards --delete -f - '*/tools/prettify*' \
- | gzip -c > $FILE.t
+ | xz -c > ${NEWFILE}.t
-mv $FILE.t $FILE
+mv ${NEWFILE}.t ${NEWFILE}
diff --git a/debian/watch b/debian/watch
index 0b1a33f..bac2797 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,4 @@
version=3
-opts=dversionmangle=s/\+dfsg//,uversionmangle=s/$/+dfsg/ \
+opts=dversionmangle=s/\+dfsg// \
http://archive.apache.org/dist/lucene/java/(4\..*)/ lucene-(4\..*)-src.tgz \
debian debian/orig-tar.sh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/lucene4.10.git
More information about the pkg-java-commits
mailing list