summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Kellner <ken@kenkellner.com>2018-05-14 15:37:38 -0400
committerKen Kellner <ken@kenkellner.com>2018-05-14 15:37:38 -0400
commit01349c72a6141ca1119585a04b4a5cb806bfbec1 (patch)
tree602f94d84a428aefd776555c5ca9335c5d89d88a
parent744e5166ede5c4433b6ea6a6b09c9a7d198aaaec (diff)
Clean up Rmd build script
-rw-r--r--build_Rmd.R (renamed from build_RMD.R)1
-rw-r--r--makefile4
2 files changed, 2 insertions, 3 deletions
diff --git a/build_RMD.R b/build_Rmd.R
index 41ae461..9e84fa5 100644
--- a/build_RMD.R
+++ b/build_Rmd.R
@@ -1,3 +1,2 @@
args = commandArgs(trailingOnly = TRUE)
-print(args)
rmarkdown::render(args[1],output_file=paste('../',args[2],sep=''))
diff --git a/makefile b/makefile
index 4b8c331..a234c33 100644
--- a/makefile
+++ b/makefile
@@ -7,7 +7,7 @@ RMD_OUT := $(patsubst $(SRC)/%.Rmd,$(BUILD)/%.html,$(RMD_IN))
all: $(RMD_OUT)
@mkdir -p build
@echo "Building index"
- @Rscript build_RMD.R $(SRC)/index.Rmd $(BUILD)/index.html > /dev/null 2>&1
+ @Rscript build_Rmd.R $(SRC)/index.Rmd $(BUILD)/index.html > /dev/null 2>&1
@echo "Building RSS"
@python3 build_rss.py
@echo "Done"
@@ -17,7 +17,7 @@ deploy:
kllnr.net:/var/www/kenkellner.com/blog/
$(BUILD)/%.html: $(SRC)/%.Rmd $(SRC)/_navbar.yml
- Rscript build_RMD.R $< $@
+ Rscript build_Rmd.R $< $@
clean:
rm -f build/*