[med-svn] r8443 - trunk/packages/neobio/trunk/debian
Charles Plessy
plessy at alioth.debian.org
Sun Nov 6 05:28:47 UTC 2011
Author: plessy
Date: 2011-11-06 05:28:46 +0000 (Sun, 06 Nov 2011)
New Revision: 8443
Modified:
trunk/packages/neobio/trunk/debian/rules
Log:
Use a different temporary directory at each invokation of get-orig-source.
Modified: trunk/packages/neobio/trunk/debian/rules
===================================================================
--- trunk/packages/neobio/trunk/debian/rules 2011-11-06 03:38:25 UTC (rev 8442)
+++ trunk/packages/neobio/trunk/debian/rules 2011-11-06 05:28:46 UTC (rev 8443)
@@ -7,13 +7,21 @@
debtmp := $(CURDIR)/debian/tmp
VERSION := $(shell dpkg-parsechangelog | grep '^Version:' | sed 's/^Version: \(.*\)-1/\1/')
-ZIPF=$(CURDIR)/../neobio_$(VERSION).zip
-SRC_TMP=$(CURDIR)/../tarballs/tmp
+SRC_TMP := $(shell mktemp --tmpdir --directory neobio-build.XXXXXXXXXX)
+ZIPF := $(SRC_TMP)/neobio_$(VERSION).zip
+REPACKED := neobio-$(VERSION).orig
+TARBALLS := $(CURDIR)/../tarballs
+
get-orig-source:
- mkdir -p $(SRC_TMP)
[ -f $(ZIPF) ] || wget -q -O $(ZIPF) http://sourceforge.net/projects/neobio/files/neobio/pre-alpha/neobio.zip
- cd $(SRC_TMP) && unzip -q $(ZIPF) && mkdir neobio-$(VERSION) && mv bin data doc src *.txt neobio-$(VERSION) && find neobio-$(VERSION) -name "*.class" -o -name "Thumbs.db" -delete && find neobio-$(VERSION) -empty -type d -delete
- cd $(SRC_TMP) && GZIP="--best --no-name" tar -czf ../neobio_$(VERSION).orig.tar.gz neobio-$(VERSION)
+ rm -rf $(SRC_TMP)/$(REPACKED)
+ mkdir $(SRC_TMP)/$(REPACKED)
+ cd $(SRC_TMP)/$(REPACKED) && \
+ unzip -q $(ZIPF) && \
+ find . -name "*.class" -o -name "Thumbs.db" -delete && \
+ find . -empty -type d -delete
+ [ -d $(TARBALLS) ] || mkdir $(TARBALLS)
+ cd $(SRC_TMP) && GZIP="--best --no-name" tar -czf $(TARBALLS)/$(REPACKED).tar.gz $(REPACKED)
rm -rf $(SRC_TMP)
config.status:
More information about the debian-med-commit
mailing list