Created
December 16, 2010 23:44
-
-
Save dustin/744233 to your computer and use it in GitHub Desktop.
My post fetch hook for gitmirror running doxygen.
This file contains 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/sh | |
PATH=$PATH:/usr/local/bin | |
export PATH | |
T=$HOME/Sites/doxygen/ep-engine | |
H=/Users/dustin/prog/ep-engine | |
git fetch | |
branches=`git branch | cut -c3- | egrep -v "z|gh-pages"` | |
cd $H | |
for b in $branches | |
do | |
echo "Updating $b" | |
git reset --hard origin/$b | |
mkdir -p $T/$b | |
rm -rf docs/doxy | |
ln -s $T/$b ~/prog/ep-engine/docs/doxy | |
doxygen > /dev/null | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment