Merge pull request #5069 from tianon/hack-make-ubuntu-man

Add contrib/man to our generated deb
This commit is contained in:
Guillaume J. Charmes 2014-04-10 08:04:04 -07:00
commit 7dd9c208fd

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