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

login
register
mail settings
Submitter Sean Farley
Date April 20, 2016, 11:04 p.m.
Message ID <f7c47a7944db6dc71fc2.1461193463@laptop.office.atlassian.com>
Download mbox | patch
Permalink /patch/14747/
State Accepted
Headers show

Comments

Sean Farley - April 20, 2016, 11:04 p.m.
# HG changeset patch
# User Sean Farley <sean@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

Patch

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