+++ /dev/null
-all:pdf
-
-pdf:daniel_watson_cv.pdf
-
-daniel_watson_cv.pdf:daniel_watson_cv.tex
- latexmk -pdf $?
-
-daniel_watson_cv_one_page.pdf:daniel_watson_cv_one_page.tex
- latexmk -pdf $?
-
-view: daniel_watson_cv.pdf
- evince $?
-
-view_one_page: daniel_watson_cv_one_page.pdf
- evince $?
-
-clean:
- latexmk -c daniel_watson_cv.tex
-
-new: cleanall all
-
-newview: new view
-
-dependencies:
- sudo aptitude install -y \
- latexmk texlive-latex-extra \
- texlive-fonts-recommended \
- latexmk
-
-cleanall:
- latexmk -C daniel_watson_cv.tex
- latexmk -C daniel_watson_cv_one_page.tex
- rm -f daniel_watson_cv.out
- rm -f daniel_watson_cv.pdf
--- /dev/null
+#! /usr/bin/env bash
+# tldr; AGPLv3+
+# copyright info at bottom
+
+# build directory when any file is modified
+inotifywait \
+ --quiet \
+ --recursive \
+ --monitor \
+ --event close_write \
+ --format %f \
+ . | \
+ while IFS= read -r file; do
+ make
+ done
+
+# goes great with
+# https://addons.mozilla.org/en-US/firefox/addon/auto-reload/
+# url regex:
+# index\.html
+# local files
+# $CWD/index.html
+
+# Copyright 2016 daniel watson
+
+# This file is part of daniel-watson-cv.
+
+# daniel-watson-cv is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+
+# daniel-watson-cv is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+
+# You should have received a copy of the GNU Affero General Public
+# License along with daniel-watson-cv. If not, see
+# <http://www.gnu.org/licenses/>.
--- /dev/null
+all:pdf
+
+autobuild:
+ ./autobuild.bash
+
+pdf:daniel_watson_cv_one_page.pdf makefile
+
+daniel_watson_cv.pdf:daniel_watson_cv.tex
+ latexmk -pdf $?
+
+daniel_watson_cv_one_page.pdf:daniel_watson_cv_one_page.tex
+ latexmk -pdf $?
+
+view: daniel_watson_cv.pdf
+ evince $?
+
+view_one_page: daniel_watson_cv_one_page.pdf
+ evince $?
+
+clean:
+ latexmk -c daniel_watson_cv.tex
+
+new: cleanall all
+
+newview: new view
+
+dependencies:
+ sudo aptitude install -y \
+ latexmk texlive-latex-extra \
+ texlive-fonts-recommended \
+ latexmk
+
+cleanall:
+ latexmk -C daniel_watson_cv.tex
+ latexmk -C daniel_watson_cv_one_page.tex
+ rm -f daniel_watson_cv.out
+ rm -f daniel_watson_cv.pdf