Last active
April 4, 2018 06:20
-
-
Save alex-pat/4c4af0a2ba1e59dc2b8e4e7cfcf11d7e to your computer and use it in GitHub Desktop.
report autoudpate
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/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