[pkg-eucalyptus-commits] r168 - euca2ools/branches/2.0/debian

Miguel Landaeta nomadium-guest at alioth.debian.org
Thu Aug 25 02:19:27 UTC 2011


Author: nomadium-guest
Date: 2011-08-25 02:19:27 +0000 (Thu, 25 Aug 2011)
New Revision: 168

Added:
   euca2ools/branches/2.0/debian/orig-tar.sh
Log:
Add get-orig-source target to debian/rules

Added: euca2ools/branches/2.0/debian/orig-tar.sh
===================================================================
--- euca2ools/branches/2.0/debian/orig-tar.sh	                        (rev 0)
+++ euca2ools/branches/2.0/debian/orig-tar.sh	2011-08-25 02:19:27 UTC (rev 168)
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+#VERSION=$2
+VERSION=$(dpkg-parsechangelog | grep ^Version: | sed -r 's/.*:\ (.*)-.*$$/\1/')
+REVNO=$(echo $VERSION | sed -r 's/.*bzr([0-9]+).*/\1/')
+PKG=euca2ools
+#TAR=../${PKG}_{$VERSION}.orig.tar.gz
+TAR=${PKG}_${VERSION}.orig.tar.gz
+DIR=$PKG-$VERSION
+REPO=$DIR.bzr
+
+bzr branch lp:$PKG $REPO
+cd $REPO && bzr export --revision=$REVNO ../$DIR && cd -
+tar -c -z -f $TAR --exclude 'man/*' $DIR
+rm -rf $DIR $REPO
+


Property changes on: euca2ools/branches/2.0/debian/orig-tar.sh
___________________________________________________________________
Added: svn:executable
   + *




More information about the pkg-eucalyptus-commits mailing list