[Sheepdog] [PATCH] add git based versioning

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Sep 27 09:38:20 CEST 2011


At Sat, 24 Sep 2011 19:43:05 +0900,
MORITA Kazutaka wrote:
> 
> Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> ---
>  configure.ac |    8 +++++++-
>  1 files changed, 7 insertions(+), 1 deletions(-)

Applied this patch.

Thanks,

Kazutaka

> 
> diff --git a/configure.ac b/configure.ac
> index 7d49a52..00d1acc 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -18,7 +18,13 @@
>  # bootstrap / init
>  AC_PREREQ([2.61])
>  
> -AC_INIT([sheepdog], [0.2.3], [sheepdog at lists.wpkg.org])
> +m4_define([sheepdog_version], [0.2.3])
> +
> +m4_define([git_version],
> +	m4_esyscmd_s([git describe --tags --dirty 2> /dev/null | sed 's/^v//']))
> +
> +AC_INIT([sheepdog], m4_default(git_version, sheepdog_version),
> +	[sheepdog at lists.wpkg.org])
>  AM_INIT_AUTOMAKE([-Wno-portability])
>  
>  AC_CONFIG_SRCDIR([collie/collie.c])
> -- 
> 1.7.2.5
> 
> -- 
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog



More information about the sheepdog mailing list