diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-01-27 20:01:43 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-01-29 16:42:59 +0000 |
| commit | 3f0a0c1582f55e0da950a7a321d25ffcf240ec6f (patch) | |
| tree | 4edcd8f7cfd1e2f40be8253999a6204d3dac470e /docs/markdown/snippets/versionfile.md | |
| parent | 9eb8b6be2874b343ffa1819a3afc2d4ed355b050 (diff) | |
| download | meson-3f0a0c1582f55e0da950a7a321d25ffcf240ec6f.tar.gz | |
Can read project version from a file.
Diffstat (limited to 'docs/markdown/snippets/versionfile.md')
| -rw-r--r-- | docs/markdown/snippets/versionfile.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/markdown/snippets/versionfile.md b/docs/markdown/snippets/versionfile.md new file mode 100644 index 000000000..6071f2cfb --- /dev/null +++ b/docs/markdown/snippets/versionfile.md @@ -0,0 +1,12 @@ +## 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 file must contain exactly one line of text and that will +be set as the project's version. If the line ends in a newline +character, it is removed. |
