From ab248675aa9f32c269e0ecbaf78af29583481379 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 7 Apr 2014 21:32:17 -0600 Subject: [PATCH] Add contrib/man to our generated deb Docker-DCO-1.1-Signed-off-by: Andrew Page (github: tianon) --- hack/make/ubuntu | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hack/make/ubuntu b/hack/make/ubuntu index 403a6c7652..d7a4b16473 100644 --- a/hack/make/ubuntu +++ b/hack/make/ubuntu @@ -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