diff options
Diffstat (limited to 'docs/markdown/snippets/versionfile.md')
-rw-r--r-- | docs/markdown/snippets/versionfile.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/markdown/snippets/versionfile.md b/docs/markdown/snippets/versionfile.md new file mode 100644 index 0000000..b0d5e30 --- /dev/null +++ b/docs/markdown/snippets/versionfile.md @@ -0,0 +1,11 @@ +## Project version can be specified with a file + +Meson can be instructed to load project's version string from an +external file like this: + +```meson +project('foo', 'c' version: files('VERSION')) +``` + +The version string would be set to the first line of the `VERSION` +file. Leading and trailing whitespace on the file is stripped.
\ No newline at end of file |