contrib/builddeb
branchstable
changeset 28993 837119bf7f01
parent 28992 dd7b72b55f3e
child 28994 8797f03db5b6
--- 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!'