search for: 209b7d1

Displaying 1 result from an estimated 1 matches for "209b7d1".

Did you mean: 20971
2008 Aug 19
0
[PATCH] Generate btrfs-progs version.h from git too
This allows version.h to be generated from either git or hg. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> --- version.sh | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/version.sh b/version.sh index d7988bf..209b7d1 100644 --- a/version.sh +++ b/version.sh @@ -8,7 +8,23 @@ v="Btrfs v0.16" -which hg > /dev/null +which git &> /dev/null +if [ $? == 0 -a -d .git ]; then + if head=`git rev-parse --verify HEAD 2>/dev/null`; then + if tag=`git describe --tags 2>/dev/null`; th...