From 780a4ca28e0de9937491b132aa0a6d93030e04d6 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 15 Nov 2016 12:08:05 +0100 Subject: Add publish script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bc761d6..5db47e0 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,18 @@ build: $(wildcard entries/*.rst) $(wildcard templates/*.html) entries.json scripts/build.py +publish: check-entry-given check-title-given $(ENTRY) + scripts/publish "$(ENTRY)" "$(TITLE)" + +check-entry-given: +ifndef ENTRY + $(error ENTRY to publish was not given.) +endif + +check-title-given: +ifndef TITLE + $(error TITLE to publish as was not given.) +endif + + .PHONY: build -- cgit v1.2.3-54-g00ecf