Trying to make a makefile rule to check that svnversion gave a proper result.
Normally, it should return something like one of the following:
1023:1055M
1056
However, it can get an error like:
svn: This client is too old to work with working copy '.'; please get a newer Subversion client
So here is my version of the rule based on other posts:
test2:
@if [ $$(svnversion | sed s/[0-9:M]*//g | grep '.') -neq ""]; \
then \
echo >&2 "Unexpected result from 'svnversion'" \
"of $$(svnversion)"; \
false; \
fi
However, the condition seems to trigger on both cases.