AddDoxygenToGHPages.sh 624 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. GITURL=$(git config --get remote.origin.url)
  3. echo $GITURL
  4. rm -rf html
  5. git clone $GITURL html
  6. cd html
  7. if ( git checkout origin/gh-pages -b gh-pages) then
  8. echo "Checked out $GITURL gh-pages"
  9. else
  10. echo "Creating out $GITURL gh-pages"
  11. git checkout origin/master -b gh-pages
  12. rm -r *
  13. echo "# A simple README file for the gh-pages branch" > README.md
  14. git add README.md
  15. git commit -m"Replaced gh-pages html with simple readme"
  16. git push -u origin gh-pages
  17. fi
  18. cd ..
  19. doxygen doxy.doxyfile
  20. cd html
  21. git add *
  22. git add search/*
  23. git commit -a -m"updating the doxygen"
  24. git push
  25. cd ..
  26. rm -rf html
  27. git checkout master