[PATCH 2 of 4 STABLE ppa] builddeb: create source archive for ubuntu

Sean Farley sean at farley.io
Wed Apr 20 19:04:23 EDT 2016


# HG changeset patch
# User Sean Farley <sean at farley.io>
# Date 1460851571 25200
#      Sat Apr 16 17:06:11 2016 -0700
# Branch stable
# Node ID f7c47a7944db6dc71fc249f5f8e376e2dcdf6ba8
# Parent  5378c78103d83e001e1c89b2deec65632f5d5300
# EXP-Topic ppa
builddeb: create source archive for ubuntu

diff --git a/contrib/builddeb b/contrib/builddeb
--- a/contrib/builddeb
+++ b/contrib/builddeb
@@ -70,10 +70,14 @@ if [ "$BUILD" ]; then
     sed -i.tmp "s/__VERSION__/$debver/" $changelog
     sed -i.tmp "s/__DATE__/$(date --rfc-2822)/" $changelog
     sed -i.tmp "s/__CODENAME__/$CODENAME/" $changelog
     rm $changelog.tmp
 
+    # remove the node from the version string
+    SRCFILE="mercurial_$(echo $debver | sed "s,-$node,,").orig.tar.gz"
+    "$PWD/hg" archive $SRCFILE
+    mv $SRCFILE ..
     debuild -us -uc -i -I -b
     if [ $? != 0 ]; then
         echo 'debuild failed!'
         exit 1
     fi


More information about the Mercurial-devel mailing list