[med-svn] r18838 - in trunk/packages/vsearch/trunk/debian: . tests
Andreas Tille
tille at moszumanska.debian.org
Sat Feb 21 21:45:02 UTC 2015
Author: tille
Date: 2015-02-21 21:45:02 +0000 (Sat, 21 Feb 2015)
New Revision: 18838
Modified:
trunk/packages/vsearch/trunk/debian/changelog
trunk/packages/vsearch/trunk/debian/rules
trunk/packages/vsearch/trunk/debian/tests/run-unit-test
Log:
Save 15MB in the data package by using xz compression instead of gz
Modified: trunk/packages/vsearch/trunk/debian/changelog
===================================================================
--- trunk/packages/vsearch/trunk/debian/changelog 2015-02-21 19:11:12 UTC (rev 18837)
+++ trunk/packages/vsearch/trunk/debian/changelog 2015-02-21 21:45:02 UTC (rev 18838)
@@ -1,3 +1,9 @@
+vsearch (1.1.1+dfsg-2) UNRELEASED; urgency=medium
+
+ * Xz compression for example data to save 25% disk space
+
+ -- Andreas Tille <tille at debian.org> Sat, 21 Feb 2015 20:12:53 +0100
+
vsearch (1.1.1+dfsg-1) unstable; urgency=medium
* New upstream version
Modified: trunk/packages/vsearch/trunk/debian/rules
===================================================================
--- trunk/packages/vsearch/trunk/debian/rules 2015-02-21 19:11:12 UTC (rev 18837)
+++ trunk/packages/vsearch/trunk/debian/rules 2015-02-21 21:45:02 UTC (rev 18838)
@@ -5,6 +5,7 @@
pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
testdir := $(CURDIR)/debian/$(pkg)-data/usr/share/doc/$(pkg)/tests
+exampledir := $(CURDIR)/debian/$(pkg)-data/usr/share/doc/$(pkg)/examples
HOST:=$(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
ifeq ($(HOST),x86_64)
@@ -62,5 +63,9 @@
mkdir -p $(testdir)/test
for tst in test/*.sh ; do sed 's?\.\./src/vsearch?/usr/bin/vsearch?' $${tst} > $(testdir)/$${tst} ; done
+override_dh_compress:
+ for f in $(exampledir)/*.fsa $(exampledir)/*.fasta ; do xz --best $$f ; done
+ dh_compress --exclude=.xz
+
get-orig-source:
uscan --verbose --force-download --repack --compression xz
Modified: trunk/packages/vsearch/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/vsearch/trunk/debian/tests/run-unit-test 2015-02-21 19:11:12 UTC (rev 18837)
+++ trunk/packages/vsearch/trunk/debian/tests/run-unit-test 2015-02-21 21:45:02 UTC (rev 18838)
@@ -12,7 +12,7 @@
cd ..
cp -a /usr/share/doc/${pkg}/tests/eval .
cp -a /usr/share/doc/${pkg}/tests/test .
-find . -type f -name "*.gz" -exec gunzip \{\} \;
+find . -type f -name "*.xz" -exec unxz \{\} \;
cd data && bunzip2 --keep BioMarKs.fsa.bz2 && gzip --keep --rsyncable BioMarKs.fsa && \
bunzip2 --keep PR2-18S-rRNA-V4.fsa.bz2 && gzip --keep --rsyncable PR2-18S-rRNA-V4.fsa
cd ../test
@@ -20,4 +20,4 @@
bash $t v ; \
done
-# rm -f $ADTTMP/*
+rm -f $ADTTMP/*
More information about the debian-med-commit
mailing list