git.samba.org
/
rsync.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Various file comparison improvements
[rsync.git]
/
mkgitver
1
#!/bin/sh
2
3
srcdir=`dirname $0`
4
gitver=`git describe --abbrev=8 2>/dev/null`
5
6
case "$gitver" in
7
*.*)
8
echo "#define RSYNC_GITVER \"$gitver\"" >git-version.h
9
;;
10
*)
11
# We either create an empty file or update the time on what the user gave us.
12
touch git-version.h
13
;;
14
esac