Skip to content

Instantly share code, notes, and snippets.

@alex-pat
Last active April 4, 2018 06:20
Show Gist options
  • Save alex-pat/4c4af0a2ba1e59dc2b8e4e7cfcf11d7e to your computer and use it in GitHub Desktop.
Save alex-pat/4c4af0a2ba1e59dc2b8e4e7cfcf11d7e to your computer and use it in GitHub Desktop.
report autoudpate
#!/bin/bash
if ! vagrant status | grep 'running (virtualbox)'
then
vagrant up
fi
vagrant ssh -c "cd /vagrant/my; make $1"
echo "Listening files..."
while inotifywait -e modify my/*.tex my/*.bib
do
vagrant ssh -c "cd /vagrant/my; make $1"
echo "Done."
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment