From 01349c72a6141ca1119585a04b4a5cb806bfbec1 Mon Sep 17 00:00:00 2001 From: Ken Kellner Date: Mon, 14 May 2018 15:37:38 -0400 Subject: Clean up Rmd build script --- build_RMD.R | 3 --- build_Rmd.R | 2 ++ makefile | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 build_RMD.R create mode 100644 build_Rmd.R diff --git a/build_RMD.R b/build_RMD.R deleted file mode 100644 index 41ae461..0000000 --- a/build_RMD.R +++ /dev/null @@ -1,3 +0,0 @@ -args = commandArgs(trailingOnly = TRUE) -print(args) -rmarkdown::render(args[1],output_file=paste('../',args[2],sep='')) diff --git a/build_Rmd.R b/build_Rmd.R new file mode 100644 index 0000000..9e84fa5 --- /dev/null +++ b/build_Rmd.R @@ -0,0 +1,2 @@ +args = commandArgs(trailingOnly = TRUE) +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/* -- cgit v1.2.3