[PATCH 4 of 5 remotefilelog-ext debs] contrib: new rules for building a debian package of remotefilelog

Matt Harbison mharbison72 at gmail.com
Thu Sep 10 18:20:20 CDT 2015


On Thu, 10 Sep 2015 11:34:22 -0400, Augie Fackler <raf at durin42.com> wrote:

> # HG changeset patch
> # User Augie Fackler <augie at google.com>
> # Date 1441897296 14400
> #      Thu Sep 10 11:01:36 2015 -0400
> # Node ID 9fec75539a1e42cee876b481f1e748dafc1f347c
> # Parent  dbe55fd6989b767892e8cc1350f8d0d7197a361c
> contrib: new rules for building a debian package of remotefilelog
>
> To build it, simply do `bash contrib/builddeb`, which will build a
> debian package for the current host system.
>
> diff --git a/contrib/builddeb b/contrib/builddeb
> new file mode 100755
> --- /dev/null
> +++ b/contrib/builddeb
> @@ -0,0 +1,31 @@
> +#!/bin/sh -eu
> +#
> +# Build a remotefilelog debian package from the current repo
> +
> +if [ ! -d .hg ]; then
> +    echo 'You are not at the repository root!' 1>&2
> +    exit 1
> +fi
> +
> +cp -r contrib/debian debian
> +trap "rm -r '$PWD/debian'" EXIT
> +
> +version=$(hg log -r . -T'{latesttag}-{latesttagdistance}-{node|short}')

Was this supposed to be {latesttag}+{..., or is the convention different  
for this?


More information about the Mercurial-devel mailing list