don't #define REVISION if we got no revision information

This commit is contained in:
Gunter Labes 2008-04-13 16:59:25 +00:00
parent 14199608f9
commit 6b193bc914

View File

@ -318,7 +318,8 @@ game_config.o: revision.hpp
REVISION = $(shell svnversion -n $(topdir) 2>/dev/null)
.PRECIOUS: revision.hpp
revision.hpp: FORCE
echo '#define REVISION "$(REVISION)"' >/tmp/westemp$$$$; \
if [ REVISION != "" && REVISION != "exported" ]; then echo '' >/tmp/westemp$$$$; \
else echo '#define REVISION "$(REVISION)"' >/tmp/westemp$$$$; \
if cmp -s revision.hpp /tmp/westemp$$$$ 2>/dev/null; then :; else cp /tmp/westemp$$$$ revision.hpp; fi
FORCE: