+2011-01-04 Bruce Korb <address@hidden>
+
+ git-version-gen: avoid a sub-shell
+ * build-aux/git-version-gen: Redirect stderr in `...` via
+ "exec 2>...", rather than via an added sub-shell.
+
2011-01-03 Ben Pfaff <blp@cs.stanford.edu>
git-version-gen: use (...) rather than sh -c '...'
#!/bin/sh
# Print a version string.
-scriptversion=2011-01-03.20; # UTC
+scriptversion=2011-01-04.17; # UTC
# Copyright (C) 2007-2011 Free Software Foundation, Inc.
#
# Don't declare a version "dirty" merely because a time stamp has changed.
git update-index --refresh > /dev/null 2>&1
-dirty=`(git diff-index --name-only HEAD) 2>/dev/null` || dirty=
+dirty=`exec 2>/dev/null;git diff-index --name-only HEAD` || dirty=
case "$dirty" in
'') ;;
*) # Append the suffix only if there isn't one already.