* build-aux/git-version-gen: Rather than hard-coding a shell's name
with "sh -c '...'", just use "(...)". Less syntax is better, too.
+2011-01-03 Ben Pfaff <blp@cs.stanford.edu>
+
+ git-version-gen: use (...) rather than sh -c '...'
+ * build-aux/git-version-gen: Rather than hard-coding a shell's name
+ with "sh -c '...'", just use "(...)". Less syntax is better, too.
+
2011-01-03 Jim Meyering <meyering@redhat.com>
git-version-gen: convert leading TABs to spaces
#!/bin/sh
# Print a version string.
-scriptversion=2011-01-03.19; # UTC
+scriptversion=2011-01-03.20; # 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=`sh -c 'git diff-index --name-only HEAD' 2>/dev/null` || dirty=
+dirty=`(git diff-index --name-only HEAD) 2>/dev/null` || dirty=
case "$dirty" in
'') ;;
*) # Append the suffix only if there isn't one already.