From aa9a8d23035a87bec572def081511549620a0549 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 26 Sep 2008 20:31:48 +0200 Subject: [PATCH] Make "gnulib-tool --version" work from any directory. --- ChangeLog | 5 +++++ gnulib-tool | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e393de131..0b7e5b7dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-09-26 Bruno Haible + * gnulib-tool (func_version): Change directory to $gnulib_dir before + invoking git-version-gen. + +2008-09-26 Bruno Haible + * posix-modules: Update to directory names changed on 2008-01-19. Remove commas in output before splitting into words. No more need to avoid 'ftruncate' since 2007-02-19. diff --git a/gnulib-tool b/gnulib-tool index 977587caa..56b185a38 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -216,7 +216,7 @@ q date=`echo "$date" | sed -e "$sed_year_before_time"` # Use GNU date to compute the time in GMT. date=`date -d "$date" -u +"%Y-%m-%d %H:%M:%S"` - version=' '`"$gnulib_dir"/build-aux/git-version-gen /dev/null | sed -e 's/-dirty/-modified/'` + version=' '`cd "$gnulib_dir" && ./build-aux/git-version-gen /dev/null | sed -e 's/-dirty/-modified/'` else if test -d "$gnulib_dir"/CVS \ && (cvs --version) >/dev/null 2>/dev/null; then -- 2.11.0