mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #5337 from tianon/man1-assumption
Update contributed man page file names and compilation script
This commit is contained in:
commit
f436c744da
33 changed files with 10 additions and 4 deletions
|
@ -9,8 +9,14 @@ cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
||||||
pwd
|
pwd
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir -p ../man1
|
for FILE in *.md; do
|
||||||
|
base="$(basename "$FILE")"
|
||||||
for FILE in docker*.md; do
|
name="${base%.md}"
|
||||||
pandoc -s -t man "$FILE" -o "../man1/${FILE%.*}.1"
|
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
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue