Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: man: improve usage of date command
Changes: * Use the exact same source date string for all `date` invocations * Use `date -d` instead of `date --date=` * Only use `-d` if supported The `date` command on ChromeOS does not support the `-d` / `--date=` option[1] [2]: # using `date --date=` ./mkman.sh 0.9.72 src/man/firejail.man firejail.1 date: invalid option -- '-' date: usage: date [-u] [-c] [-r seconds] [+format] make: *** [Makefile:42: firejail.1] Error 1 # using `date -d` ./mkman.sh 0.9.72 src/man/firejail.man firejail.1 date: invalid option -- 'd' date: usage: date [-u] [-c] [-r seconds] [+format] make: *** [Makefile:42: firejail.1] Error 1 Environment: zoneinfo 2024a on ChromeOS M125. Relates to netblue30#193. Fixes netblue30#6403. [1] netblue30#6403 (comment) [2] netblue30#6403 (comment) Reported-by: @Zopolis4
- Loading branch information