1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Add contrib/man to our generated deb

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
This commit is contained in:
Tianon Gravi 2014-04-07 21:32:17 -06:00
parent be3a5a2e37
commit ab248675aa

View file

@ -46,6 +46,18 @@ bundle_ubuntu() {
mkdir -p $DIR/etc/fish/completions
cp contrib/completion/fish/docker.fish $DIR/etc/fish/completions/
# Include contributed man pages
manRoot="$DIR/usr/share/man"
mkdir -p "$manRoot"
for manDir in contrib/man/man*; do
manBase="$(basename "$manDir")" # "man1"
for manFile in "$manDir"/*; do
manName="$(basename "$manFile")" # "docker-build.1"
mkdir -p "$manRoot/$manBase"
gzip -c "$manFile" > "$manRoot/$manBase/$manName.gz"
done
done
# Copy the binary
# This will fail if the binary bundle hasn't been built
mkdir -p $DIR/usr/bin