Skip to content

Instantly share code, notes, and snippets.

@jamesbvaughan
Created May 1, 2018 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesbvaughan/21dacfe590d4b6a44b8fe34ae935171f to your computer and use it in GitHub Desktop.
Save jamesbvaughan/21dacfe590d4b6a44b8fe34ae935171f to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
echo "Cloning necessary repositories..."
git clone https://github.com/neomutt/neomutt
git clone --recursive https://github.com/neomutt/neomutt.github.io
git clone https://github.com/neomutt/doxygen
cd neomutt
echo "Generating docs with doxygen..."
doxygen doxygen/doxygen.conf
cd ../doxygen
echo "Removing old docs..."
git rm -r ./*
echo "Copying in new docs..."
cp -r ../neomutt/html/* ./
echo "Committing and pushing changes..."
git commit --all -m "Update docs"
git push origin master
cd ../neomutt.github.io/code
echo "Updating code docs submodule..."
git pull
cd ..
echo "Committing and pushing updated code docs..."
git commit --all -m "Updated docs submodule"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment