update upstream get scripts
authorOlivier Sallou <osallou@debian.org>
Thu, 28 Apr 2011 16:19:19 +0000 (16:19 +0000)
committerOlivier Sallou <osallou@debian.org>
Thu, 28 Apr 2011 16:19:19 +0000 (16:19 +0000)
debian/get-orig-source [new file with mode: 0755]
debian/rules
debian/watch

diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755 (executable)
index 0000000..ce2802f
--- /dev/null
@@ -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
+
index 0cdbf877385e4e55f030504d8920f8bec49c99d0..7e7759d5ceb859a4fd102456bc69881c1ad21071 100755 (executable)
@@ -31,3 +31,7 @@ override_dh_clean:
 
 %:
        dh $@ 
+
+
+get-orig-source:
+       . debian/get-orig-source
index ac0075ca0bb581a805aeb9ae2e6075946e551c3c..7531db235120fb3c606eb7eae5c1ab25f7a97f53 100644 (file)
@@ -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