From 05ce40b2253ab6c08e35d23f2ddf33f86a550651 Mon Sep 17 00:00:00 2001 From: daniel watson Date: Sun, 31 Jul 2016 08:34:30 -0700 Subject: [PATCH] add autobuild --- autobuild.bash | 40 ++++++++++++++++++++++++++++++++++++++++ Makefile => makefile | 5 ++++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100755 autobuild.bash rename Makefile => makefile (88%) 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 similarity index 88% rename from Makefile rename to makefile index 93e0240..ca0b485 100644 --- a/Makefile +++ b/makefile @@ -1,6 +1,9 @@ all:pdf -pdf:daniel_watson_cv.pdf +autobuild: + ./autobuild.bash + +pdf:daniel_watson_cv_one_page.pdf makefile daniel_watson_cv.pdf:daniel_watson_cv.tex latexmk -pdf $? -- 2.30.2