mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-23 14:04:19 +02:00
Add adjust-epoch script
This commit is contained in:
parent
77e2b392ed
commit
f99c39516d
3 changed files with 31 additions and 0 deletions
15
README.md
15
README.md
|
|
@ -294,6 +294,21 @@ meson compile fuzz -C build
|
|||
If you want to use a different directory, configure cagebreak with
|
||||
`-Dcorpus=OTHERDIRECTORY` or call `./scripts/fuzz OTHERDIRECTORY`.
|
||||
|
||||
##### Adjusting Epoch
|
||||
|
||||
To facilitate the creation of reproducible man pages an arbitrary release
|
||||
time has to be set in `meson.build`:
|
||||
|
||||
```
|
||||
meson compile adjust-epoch -C build
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```
|
||||
./scripts/adjust-epoch
|
||||
```
|
||||
|
||||
### GCC and -fanalyzer
|
||||
|
||||
Cagebreak should compile with any reasonably new gcc or clang. Consider
|
||||
|
|
|
|||
|
|
@ -350,6 +350,9 @@ run_target('devel-install',
|
|||
run_target('fuzz',
|
||||
command : ['scripts/fuzz', get_option('corpus')])
|
||||
|
||||
run_target('adjust-epoch',
|
||||
command : ['scripts/adjust-epoch'])
|
||||
|
||||
# Test Suite
|
||||
|
||||
test('Build without warnings', find_program('test/build-w-o-warnings'), env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'devel')
|
||||
|
|
|
|||
13
scripts/adjust-epoch
Normal file
13
scripts/adjust-epoch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
# Copyright 2023, project-repo and the cagebreak contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
if [[ -n ${MESON_SOURCE_ROOT} ]]
|
||||
then
|
||||
# shellcheck disable=2164
|
||||
cd "${MESON_SOURCE_ROOT}"
|
||||
fi
|
||||
|
||||
# shellcheck disable=2034
|
||||
ssepoch=$(date +%s)
|
||||
sed -i -e "/secssinceepoch \=/s/[0-9]*$/$ssepoch/" meson.build
|
||||
Loading…
Add table
Add a link
Reference in a new issue