Skip to content

Instantly share code, notes, and snippets.

@dustin
Created December 16, 2010 23:44
Show Gist options
  • Save dustin/744233 to your computer and use it in GitHub Desktop.
Save dustin/744233 to your computer and use it in GitHub Desktop.
My post fetch hook for gitmirror running doxygen.
#!/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