Created
September 16, 2011 00:07
-
-
Save anotherjesse/1220854 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This script exits on an error so that errors don't compound and you see | |
| # # only the first error that occured. | |
| # set -o errexit | |
| # Print the commands being run so that we can see the command that triggers | |
| # an error. It is also useful for following allowing as the install occurs. | |
| set -o xtrace | |
| # copy all the docs to /tmp/docs | |
| rm -rf .docs | |
| mkdir -p .docs | |
| cp *.sh .docs | |
| git checkout gh-pages | |
| pushd .docs | |
| for f in *.sh | |
| do | |
| echo "Processing $f file..." | |
| shocco $f > ../$f.html | |
| done | |
| popd | |
| git add *.html | |
| git commit -a -m "update docs" | |
| git push origin gh-pages | |
| git checkout master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment