builddeb: create source archive for ubuntu stable
authorSean Farley <sean@farley.io>
Sat, 16 Apr 2016 17:06:11 -0700
branchstable
changeset 28993 837119bf7f01
parent 28992 dd7b72b55f3e
child 28994 8797f03db5b6
builddeb: create source archive for ubuntu
contrib/builddeb
--- a/contrib/builddeb	Fri Apr 15 15:44:00 2016 -0700
+++ b/contrib/builddeb	Sat Apr 16 17:06:11 2016 -0700
@@ -72,6 +72,10 @@
     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!'