premake: fix oldRevNumber if a version.hpp in an old format exists.
This commit is contained in:
parent
1e1a415125
commit
d8e1822c70
@ -25,6 +25,10 @@ newaction {
|
||||
if oldVersionHeader ~=nil then
|
||||
local oldVersionHeaderContent = assert(oldVersionHeader:read('*a'))
|
||||
oldRevNumber = string.match(oldVersionHeaderContent, "#define REVISION (%d+)")
|
||||
if oldRevNumber = nil then
|
||||
-- old version.hpp format?
|
||||
oldRevNumber = "(none)"
|
||||
end
|
||||
end
|
||||
|
||||
-- generate version.hpp with a revision number if not equal
|
||||
|
Loading…
Reference in New Issue
Block a user