Add git-tag script

This commit is contained in:
project-repo 2023-04-13 19:50:34 +02:00
commit b732b92cea
3 changed files with 22 additions and 0 deletions

View file

@ -309,6 +309,24 @@ or
./scripts/adjust-epoch
```
##### Git tag
If you are on the master branch, everything is ready and you want to create
a release tag you can call:
```
meson compule git-tag -C build
```
If you want to use another signing key than the prespecified one, configure
Cagebreak with `-Dgpg_id=GPGID`.
```
./scripts/git-tag GPGID CBVERSION
```
can be used alternatively.
### GCC and -fanalyzer
Cagebreak should compile with any reasonably new gcc or clang. Consider

View file

@ -353,6 +353,9 @@ run_target('fuzz',
run_target('adjust-epoch',
command : ['scripts/adjust-epoch'])
run_target('git-tag',
command : ['scripts/git-tag', get_option('gpg_id'), meson.project_version()])
# Test Suite
test('Build without warnings', find_program('test/build-w-o-warnings'), env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'devel')

View file

@ -5,3 +5,4 @@ option('man-pages', type: 'boolean', value: 'false', description: 'Build man pag
option('fuzz', type: 'boolean', value: 'false', description: 'Enable building fuzzer targets')
option('version_override', type: 'string', description: 'Set the project version to the string specified. Used for creating hashes for reproducible builds.')
option('corpus', type: 'string', value: 'fuzz_corpus', description: 'Set fuzzing corpus directory')
option('gpg_id', type: 'string', value: '4E82C72C6B3E58A7BC4FF8554909F84CA83BB867', description: 'Set gpg signing key for cagebreak')