From: daniel watson Date: Sun, 31 Jul 2016 15:34:30 +0000 (-0700) Subject: add autobuild X-Git-Url: http://challenge-bot.com/repos/?p=ozzloy%40gmail.com%2Fcv;a=commitdiff_plain;h=05ce40b2253ab6c08e35d23f2ddf33f86a550651 add autobuild --- diff --git a/Makefile b/Makefile deleted file mode 100644 index 93e0240..0000000 --- a/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -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 diff --git a/autobuild.bash b/autobuild.bash new file mode 100755 index 0000000..706442e --- /dev/null +++ b/autobuild.bash @@ -0,0 +1,40 @@ +#! /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 +# . diff --git a/makefile b/makefile new file mode 100644 index 0000000..ca0b485 --- /dev/null +++ b/makefile @@ -0,0 +1,37 @@ +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