Age | Commit message (Collapse) | Author | Files | Lines |
|
module
|
|
|
|
|
|
Significantly, the version::in_rule rule now track changes to the substitution
values.
|
|
|
|
|
|
|
|
Instead of leaving it as .z we now take the date of the previous commit and
increment it by a second. The main benefit of doing it this way is that once
committed, the new version does not "jump back" behind .z.
|
|
In the strict mode every substitution symbol is expected to start a
substitution with the double symbol (e.g., $$) serving as an
escape sequence.
In the lax mode a pair of substitution symbols is only treated as a
substitution if what's between them looks like a build2 variable
name (i.e., doesn't contain spaces, etc). Everything else,
including unterminated substitution symbols is copied as is. Note
also that in this mode the double symbol is not treated as an
escape sequence.
The lax mode is mostly useful when trying to reuse existing .in
files, for example from autoconf. Note, however, that the lax mode
is still stricter than the autoconf's semantics which also leaves
unknown substitutions as is.
|
|
Give this (legacy) version.h.in:
Can now do:
h{version}: in{version} file{$src_root/manifest}
h{version}: in.symbol = '@'
h{version}: FOO = $project.version
|
|
|