X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=bowtie.git;a=blobdiff_plain;f=debian%2Fget-orig-source;fp=debian%2Fget-orig-source;h=a61aacbcc1268d879f4a120226a1cf6c26b5465b;hp=0000000000000000000000000000000000000000;hb=7ff6d33630733772d810e0ad76ed0a6ff60d612d;hpb=3cce4167a5b99fda4b9b372ee73494ed36dbcd59 diff --git a/debian/get-orig-source b/debian/get-orig-source new file mode 100644 index 0000000..a61aacb --- /dev/null +++ b/debian/get-orig-source @@ -0,0 +1,22 @@ +#!/bin/sh +# script to download and repack source package of bowtie which comes in zip format + +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/"` + +mkdir -p ../tarballs +cd ../tarballs + +UPSTREAMDIR=${PKG}-${VERSION} +unzip ../"${UPSTREAMDIR}-src.zip" + +## remove copy of SeqAn library - unfortunately the package does not compile +## with the Debian packaged version 1.2 +#rm -rf "${UPSTREAMDIR}"/SeqAn-1.1 + +GZIP="--best --no-name" tar -czf "$PKG"_"$VERSION".orig.tar.gz "${UPSTREAMDIR}" +rm -rf "${UPSTREAMDIR}" +