Merge pull request #5337 from tianon/man1-assumption
Update contributed man page file names and compilation script Upstream-commit: f436c744da8b3ab4da94d385e16eeb672b31dcd7 Component: engine
This commit is contained in:
@ -9,8 +9,14 @@ cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
||||
pwd
|
||||
}
|
||||
|
||||
mkdir -p ../man1
|
||||
|
||||
for FILE in docker*.md; do
|
||||
pandoc -s -t man "$FILE" -o "../man1/${FILE%.*}.1"
|
||||
for FILE in *.md; do
|
||||
base="$(basename "$FILE")"
|
||||
name="${base%.md}"
|
||||
num="${name##*.}"
|
||||
if [ -z "$num" -o "$base" = "$num" ]; then
|
||||
# skip files that aren't of the format xxxx.N.md (like README.md)
|
||||
continue
|
||||
fi
|
||||
mkdir -p "../man${num}"
|
||||
pandoc -s -t man "$FILE" -o "../man${num}/${name}"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user