зеркало из https://github.com/microsoft/docker.git
Merge pull request #5337 from tianon/man1-assumption
Update contributed man page file names and compilation script
This commit is contained in:
Коммит
f436c744da
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче