[med-svn] r5791 - trunk/packages/mothur/trunk/debian
Andreas Tille
tille at alioth.debian.org
Sat Jan 29 23:16:42 UTC 2011
Author: tille
Date: 2011-01-29 23:16:42 +0000 (Sat, 29 Jan 2011)
New Revision: 5791
Added:
trunk/packages/mothur/trunk/debian/get-orig-source
trunk/packages/mothur/trunk/debian/watch
Modified:
trunk/packages/mothur/trunk/debian/rules
Log:
Provide watch file; rewrite get-orig-source based on the last version obtained by uscan
Added: trunk/packages/mothur/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/mothur/trunk/debian/get-orig-source (rev 0)
+++ trunk/packages/mothur/trunk/debian/get-orig-source 2011-01-29 23:16:42 UTC (rev 5791)
@@ -0,0 +1,23 @@
+#!/bin/sh
+# script to download and repack source package of mothur because it is provided as zip
+
+set -x
+PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+VERSION=`uscan --verbose --force-download | \
+ grep "Newest version on remote site is .* local version is .*" | \
+ head -n 1 | \
+ sed "s/Newest version on remote site is \([-0-9.]\+\),.*/\1/"`
+
+UPSTREAMNAME=Mothur
+
+mkdir -p ../tarballs
+cd ../tarballs
+
+UPSTREAMDIR="${PKG}-${VERSION}"
+unzip ../${UPSTREAMNAME}.${VERSION}.zip
+mv Mothur.source ${UPSTREAMDIR}
+
+rm -f ${UPSTREAMDIR}/.DS_Store
+
+GZIP="--best --no-name" tar -czf "$PKG"_"$VERSION".orig.tar.gz "${UPSTREAMDIR}"
+rm -rf "${UPSTREAMDIR}" __MACOSX
Modified: trunk/packages/mothur/trunk/debian/rules
===================================================================
--- trunk/packages/mothur/trunk/debian/rules 2011-01-29 22:54:29 UTC (rev 5790)
+++ trunk/packages/mothur/trunk/debian/rules 2011-01-29 23:16:42 UTC (rev 5791)
@@ -50,13 +50,4 @@
echo 'UPSTREAM_VESRION="$(UPSTREAM_VERSION)"'
get-orig-source:
- -@ if [ -d "mothur-$(UPSTREAM_VERSION)" -o -d "Mothur.source" -o -r Mothur.source.zip ] ; then \
- echo "First run rm -rf Mothur.source mothur-$(UPSTREAM_VERSION) Mothur.source.zip" ; \
- false ; \
- fi
- wget http://www.mothur.org/w/images/2/2b/Mothur.source.zip
- unzip Mothur.source.zip
- mv Mothur.source mothur-$(UPSTREAM_VERSION)
- tar czvf ../mothur_$(UPSTREAM_VERSION).orig.tar.gz mothur-$(UPSTREAM_VERSION)
- rm -rf Mothur.source mothur-$(UPSTREAM_VERSION) Mothur.source.zip
- rm -rf __MACOSX
+ . debian/get-orig-source
Added: trunk/packages/mothur/trunk/debian/watch
===================================================================
--- trunk/packages/mothur/trunk/debian/watch (rev 0)
+++ trunk/packages/mothur/trunk/debian/watch 2011-01-29 23:16:42 UTC (rev 5791)
@@ -0,0 +1,3 @@
+version=3
+http://www.mothur.org/wiki/Download_mothur \
+ /w/images/.*/.*/Mothur\.([\d\.]+)\.zip
More information about the debian-med-commit
mailing list