diff options
author | 2023-07-07 14:01:20 -0400 | |
---|---|---|
committer | 2023-07-07 14:01:20 -0400 | |
commit | 9e206b7f2cef2db87b964da8d8199cc47c5c4a8b (patch) | |
tree | 50d8ebaf4d99796900a4d92f8fe1b6650ff6af3a /src/man/mkman.sh | |
parent | Merge pull request #5885 from pirate486743186/lobster (diff) | |
download | firejail-9e206b7f2cef2db87b964da8d8199cc47c5c4a8b.tar.gz firejail-9e206b7f2cef2db87b964da8d8199cc47c5c4a8b.tar.zst firejail-9e206b7f2cef2db87b964da8d8199cc47c5c4a8b.zip |
rework src/man Makefile
Diffstat (limited to 'src/man/mkman.sh')
-rwxr-xr-x | src/man/mkman.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/man/mkman.sh b/src/man/mkman.sh new file mode 100755 index 000000000..b538b0126 --- /dev/null +++ b/src/man/mkman.sh | |||
@@ -0,0 +1,12 @@ | |||
1 | #!/bin/sh | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2023 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set -e | ||
7 | |||
8 | sed -i "s/VERSION/$1/g" "$2" | ||
9 | MONTH="$(LC_ALL=C date -u --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%b)" | ||
10 | sed -i "s/MONTH/$MONTH/g" "$2" | ||
11 | YEAR="$(LC_ALL=C date -u --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y)" | ||
12 | sed -i "s/YEAR/$YEAR/g" "$2" | ||