svn_version: strengthened to handle errors from svn (for example when building from the distribution tar bundle)

This commit is contained in:
Robin Mills 2014-07-02 22:18:29 +00:00
parent 501fadcdd6
commit 290baeea72

View File

@ -2,7 +2,8 @@
##
# update svn_version.h when the revision has changed
svn_version=$(svn info .. | grep ^Revision | cut -f 2 -d' ')
svn_version=$(svn info .. 2>/dev/null | grep ^Revision | cut -f 2 -d' ')
if [ -z "$svn_version" ]; then svn_version=0 ; fi
if [ -e svn_version.h ]; then
old=$(cut -f 3 -d' ' svn_version.h)
if [ "$old" != "$svn_version" ]; then