args.
- Fixed a bug in the internal MD4 checksum code that could cause the digest
- to be incorrect part of the time (the openssl version was/is fine).
+ to be sporadically incorrect (the openssl version was/is fine).
+
+### PACKAGING RELATED:
+
+- The mkgitver script now makes sure that a `.git` dir/file is in the top-level
+ source dir before calling `git describe`. It also runs a basic check on the
+ version value. This should avoid using an unrelated git description for
+ rsync's version.
------------------------------------------------------------------------------
srcdir=`dirname $0`
-if [ -e "$srcdir/.git" ]; then
- gitver=`git describe --abbrev=8 2>/dev/null`
-fi
-
if [ ! -f git-version.h ]; then
touch git-version.h
fi
-case "$gitver" in
- *.*)
+if [ -e "$srcdir/.git" ]; then
+ gitver=`git describe --abbrev=8 2>/dev/null | sed -n '/^v3\.[0-9][0-9]*\.[0-9][0-9]*\(-\|$\)/p'`
+ if [ -n "$gitver" ]; then
echo "#define RSYNC_GITVER \"$gitver\"" >git-version.h.new
if ! diff git-version.h.new git-version.h >/dev/null; then
echo "Updating git-version.h"
else
rm git-version.h.new
fi
- ;;
-esac
+ fi
+fi