Skip to content

Commit

Permalink
add docker-man-pages-osx.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
cmosetick committed Feb 29, 2016
1 parent 5fde786 commit ba9ad77
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docker-man-pages-osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/local/bin/bash

# adapted from: http://stackoverflow.com/a/32239112

mkdir $HOME/temp
cd $HOME/temp
git clone https://github.com/docker/docker.git
cd docker/man # looks like the directory has moved up
docker build -t docker/md2man . # don't forget the '.'
docker run -v $PWD/:/docs:rw -w /docs -i docker/md2man /docs/md2man-all.sh
cp -R man* /usr/local/share/man/ # no sudo for homebrew location
rm -rf $HOME/temp/docker # cleanup
man docker # check it worked on OS X

0 comments on commit ba9ad77

Please sign in to comment.