Author: tille Date: 2010-11-17 11:07:52 +0000 (Wed, 17 Nov 2010) New Revision: 5442
Added: trunk/packages/last-align/trunk/debian/get-orig-source Modified: trunk/packages/last-align/trunk/debian/changelog trunk/packages/last-align/trunk/debian/control trunk/packages/last-align/trunk/debian/rules Log: New upstream source; changed get-orig-source target to always obtain latest version (not version from changelog) Modified: trunk/packages/last-align/trunk/debian/changelog =================================================================== --- trunk/packages/last-align/trunk/debian/changelog 2010-11-17 00:13:31 UTC (rev 5441) +++ trunk/packages/last-align/trunk/debian/changelog 2010-11-17 11:07:52 UTC (rev 5442) @@ -1,3 +1,10 @@ +last-align (139-1) unstable; urgency=low + + * New upstream version + * Standards-Version: 3.9.1 (no changes needed) + + -- Andreas Tille <[email protected]> Wed, 17 Nov 2010 11:22:38 +0100 + last-align (128-1) unstable; urgency=low * New upstream version Modified: trunk/packages/last-align/trunk/debian/control =================================================================== --- trunk/packages/last-align/trunk/debian/control 2010-11-17 00:13:31 UTC (rev 5441) +++ trunk/packages/last-align/trunk/debian/control 2010-11-17 11:07:52 UTC (rev 5442) @@ -6,7 +6,7 @@ Uploaders: Charles Plessy <[email protected]>, Andreas Tille <[email protected]> Build-Depends: debhelper (>= 7), cdbs, help2man (>= 1.36.4+nmu1), python-imaging -Standards-Version: 3.9.0 +Standards-Version: 3.9.1 Homepage: http://last.cbrc.jp/ Vcs-Browser: http://svn.debian.org/wsvn/debian-med/trunk/packages/last-align/trunk/?rev=0&sc=0 Vcs-Svn: svn://svn.debian.org/svn/debian-med/trunk/packages/last-align/trunk/ Added: trunk/packages/last-align/trunk/debian/get-orig-source =================================================================== --- trunk/packages/last-align/trunk/debian/get-orig-source (rev 0) +++ trunk/packages/last-align/trunk/debian/get-orig-source 2010-11-17 11:07:52 UTC (rev 5442) @@ -0,0 +1,20 @@ +#!/bin/sh -e +# Upstream provides source in ZIP file so we have to repack to get a tar.gz + +UNAME=last +PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'` +UVERSION=`uscan --verbose --force-download | \ + grep "Newest version on remote site is .* local version is .*" | \ + head -n 1 | \ + sed "s?Newest .* \([-0-9.]\+\),.* \([0-9.]\+\)?\1?"` + +UPSTREAMZIP=${UNAME}-${UVERSION}.zip + +mkdir -p ../tarballs +cd ../tarballs +mv ../${UPSTREAMZIP} . + +unzip ${UPSTREAMZIP} >/dev/null + +GZIP="-9 --no-name" tar -czf "$PKG"_"$UVERSION".orig.tar.gz ${UNAME}-${UVERSION} +rm -rf ${UNAME}-${UVERSION} Modified: trunk/packages/last-align/trunk/debian/rules =================================================================== --- trunk/packages/last-align/trunk/debian/rules 2010-11-17 00:13:31 UTC (rev 5441) +++ trunk/packages/last-align/trunk/debian/rules 2010-11-17 11:07:52 UTC (rev 5442) @@ -62,9 +62,10 @@ $(CURDIR)/scripts/maf-convert.py > $(mandir)/maf-convert.1 # The unzip command from the unzip package is needed for this one. -# Please update debian/changelog before calling this target. +# This target obtains the latest upstream version and not the latest packaged version get-orig-source: - [ -f ../last-$(DEB_UPSTREAM_VERSION).zip ] || uscan --force-download - unzip ../last-$(DEB_UPSTREAM_VERSION).zip -d.. - mv ../last-$(DEB_UPSTREAM_VERSION) ../last-$(DEB_UPSTREAM_VERSION).orig - GZIP="--best --no-name" tar --create --gzip --file ../$(pkg)_$(DEB_UPSTREAM_VERSION).orig.tar.gz ../last-$(DEB_UPSTREAM_VERSION).orig + . debian/get-orig-source +# [ -f ../last-$(DEB_UPSTREAM_VERSION).zip ] || uscan --force-download +# unzip ../last-$(DEB_UPSTREAM_VERSION).zip -d.. +# mv ../last-$(DEB_UPSTREAM_VERSION) ../last-$(DEB_UPSTREAM_VERSION).orig +# GZIP="--best --no-name" tar --create --gzip --file ../$(pkg)_$(DEB_UPSTREAM_VERSION).orig.tar.gz ../last-$(DEB_UPSTREAM_VERSION).orig _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/debian-med-commit
