[INTERPRETER]

* BUG: Detection of svn commit version now works with older version of subversion.


git-svn-id: svn://localhost/gambas/trunk@8064 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2017-01-25 22:30:19 +00:00
parent 93207f480a
commit cf6eb94ebd

View file

@ -7,7 +7,7 @@ CLEANFILES = trunk_version.h
.PHONY: trunk_version.h .PHONY: trunk_version.h
trunk_version.h: trunk_version.h:
@if test -d ../.svn ; then \ @if test -d ../.svn ; then \
if test ../.svn/wc.db -nt trunk_version.h ; then \ if test ../.svn/wc.db -nt trunk_version.h || test ../.svn/entries -nt trunk_version.h; then \
echo '#define TRUNK_VERSION "'`LC_ALL=C svn info 2>/dev/null | grep Revision | egrep -wo [0-9]+`'"' > trunk_version.h; \ echo '#define TRUNK_VERSION "'`LC_ALL=C svn info 2>/dev/null | grep Revision | egrep -wo [0-9]+`'"' > trunk_version.h; \
fi \ fi \
else \ else \