Add bzr support to gnc-svnversion. Patch by Jesse Weinstein

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18692 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens
2010-02-20 00:17:41 +00:00
parent b008a11984
commit 0e00cfd225

View File

@@ -54,7 +54,18 @@ then
fi
fi
if test $OSTYPE == "msys"
if test -d "${real_srcdir}"/.bzr ;
then
bzrhead=`bzr version-info "${real_srcdir}"`
if test $? = 0 ; then
echo "$bzrhead" | awk -F ':' '/revision-id/{print $5}'
exit 0
else
exit 1
fi
fi
if test $OSTYPE -a $OSTYPE = "msys";
then
svk_name="svk.bat"
svk_cmd="cmd \/c svk"