cereal/updatedoc.sh
2013-07-10 14:10:41 -07:00

21 lines
320 B
Bash
Executable File

#!/usr/bin/env bash
# Updates the doxygen documentation, and copies it into the appropriate place
# in the gh-pages branch.
set -e
tempdir=`mktemp -d`
make doc
cp -r ./doc/html/ ${tempdir}
git checkout gh-pages
rm -rf assets/doxygen
mkdir assets/doxygen
cp -r ${tempdir}/html/* assets/doxygen/
rm -rf ${tempdir}