From: Bruno Haible Date: Fri, 26 Sep 2008 18:31:48 +0000 (+0200) Subject: Make "gnulib-tool --version" work from any directory. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa9a8d23035a87bec572def081511549620a0549;p=pspp Make "gnulib-tool --version" work from any directory. --- diff --git a/ChangeLog b/ChangeLog index e393de1313..0b7e5b7dca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/gnulib-tool b/gnulib-tool index 977587caa2..56b185a381 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