mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-05 20:40:02 -08:00
* ci: Changes from #160- Invoke the mandoc linter * Add check.sh from #160 too * Fix mandoc
14 lines
305 B
Bash
Executable File
14 lines
305 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# We have to filter this STYLE error out, because it is very platform specific
|
|
OUTPUT=$(mandoc -Tlint "$1" | grep --invert-match "STYLE: referenced manual not found")
|
|
|
|
if [ -z "$OUTPUT" ]
|
|
then
|
|
exit 0
|
|
else
|
|
echo "$1 is malformatted, check mandoc -Tlint $1"
|
|
echo "$OUTPUT"
|
|
exit 1
|
|
fi
|