Skip to content

Instantly share code, notes, and snippets.

@anotherjesse
Created September 16, 2011 00:07
Show Gist options
  • Select an option

  • Save anotherjesse/1220854 to your computer and use it in GitHub Desktop.

Select an option

Save anotherjesse/1220854 to your computer and use it in GitHub Desktop.
#!/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