r41161 - /scripts/fix-missing-upstream
ryan52-guest at users.alioth.debian.org
ryan52-guest at users.alioth.debian.org
Mon Aug 3 08:02:36 UTC 2009
Author: ryan52-guest
Date: Mon Aug 3 08:02:31 2009
New Revision: 41161
URL: http://svn.debian.org/wsvn/?sc=1&rev=41161
Log:
oh, that was there for the apt-get sourceing...works better now.
Modified:
scripts/fix-missing-upstream
Modified: scripts/fix-missing-upstream
URL: http://svn.debian.org/wsvn/scripts/fix-missing-upstream?rev=41161&op=diff
==============================================================================
--- scripts/fix-missing-upstream (original)
+++ scripts/fix-missing-upstream Mon Aug 3 08:02:31 2009
@@ -1,8 +1,8 @@
#!/bin/sh
-DOWNLOAD_STRING=$(head -1 debian/changelog)
+DOWNLOAD_STRING=$(sed -r -e '/unstable. urgency/ !d' -e 'q' debian/changelog)
DOWNLOAD_STRING=$(echo $DOWNLOAD_STRING | sed -r 's/(.*) \((.*)\).*/\1=\2/')
-TARBALL=$(echo $DOWNLOAD_STRING | sed -e 's/=/_/' -e 's/^[0-9]*://' -e 's/-[0-9.]*$//').orig.tar.gz
+TARBALL=$(head -1 debian/changelog | sed -r 's/(.*) \((.*)\).*/\1=\2/' | sed -e 's/=/_/' -e 's/^[0-9]*://' -e 's/-[0-9.]*$//').orig.tar.gz
UPSTREAM_VERSION=$(echo $TARBALL | sed -r 's/^.*_(.*).orig.tar.gz$/\1/')
PACKAGE=$(echo $TARBALL | sed -r 's/^(.*)_.*$/\1/')
ORIGDIR=$(pwd)
More information about the Pkg-perl-cvs-commits
mailing list