mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 18:47:40 +00:00
don't #define REVISION if we got no revision information
This commit is contained in:
parent
14199608f9
commit
6b193bc914
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user