From: Olivier Sallou Date: Thu, 28 Apr 2011 16:19:19 +0000 (+0000) Subject: update upstream get scripts X-Git-Tag: archive/raspbian/2.16.0+ds-7+rpi1~1^2~380 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5c2551b5aead1df7a268290ab1a3b29e190a18c3;p=ncbi-blast%2B.git update upstream get scripts --- diff --git a/debian/get-orig-source b/debian/get-orig-source new file mode 100755 index 00000000..ce2802f2 --- /dev/null +++ b/debian/get-orig-source @@ -0,0 +1,25 @@ +#!/bin/bash + +set -e + +PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'` +VERSION=`uscan --rename --verbose --force-download | + grep "Newest version on remote site is .* local version is .*" | + head -n 1 | + sed "s/Newest version on remote site is \([a-z0-9.]\+\),.*/\1/"` + +mkdir -p ../tarballs +cd ../tarballs + +UTAR="${PKG}_${VERSION}.orig.tar.gz" +mv ../${UTAR} . +tar -xzf ${UTAR} + +mv ncbi-blast-${VERSION}+-src/c++ $PKG-${VERSION}.orig # .orig is requested by Developers Reference 3.4.4 §6.7.8.2 +rmdir ncbi-blast-${VERSION}+-src + +rm $UTAR + +BZIP2="--best" tar -cjf ${PKG}_${VERSION}.orig.tar.bz2 ${PKG}-${VERSION}.orig +rm -rf ${PKG}-${VERSION}.orig + diff --git a/debian/rules b/debian/rules index 0cdbf877..7e7759d5 100755 --- a/debian/rules +++ b/debian/rules @@ -31,3 +31,7 @@ override_dh_clean: %: dh $@ + + +get-orig-source: + . debian/get-orig-source diff --git a/debian/watch b/debian/watch index ac0075ca..7531db23 100644 --- a/debian/watch +++ b/debian/watch @@ -1,3 +1,3 @@ version=3 -opts=pasv,filenamemangle=s/\+-src/-orig/ \ +opts=pasv,filenamemangle=s/\+-src/-orig/,filenamemangle=s/blast/blast-plus/ \ ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-(.*)\+-src\.tar\.gz debian uupdate