From deaff6af5b430bdbcc1ebc23ee00bf45a06c1a21 Mon Sep 17 00:00:00 2001 From: Boris Grozev Date: Mon, 3 Aug 2015 13:16:00 -0500 Subject: [PATCH] Executes a local (git-ignored) script on "make deploy". --- .gitignore | 1 + Makefile | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 92772c563..c0dc2e1c2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules .idea/ *.iml .*.tmp +deploy-local.sh diff --git a/Makefile b/Makefile index e37134814..1dca402b0 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,10 @@ app: $(NPM) update && $(BROWSERIFY) $(FLAGS) app.js -s APP -o $(OUTPUT_DIR)/app.bundle.js clean: - @rm -f $(OUTPUT_DIR)/*.bundle.js + rm -f $(OUTPUT_DIR)/*.bundle.js deploy: - @mkdir -p $(DEPLOY_DIR) && cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR) && ./bump-js-versions.sh + mkdir -p $(DEPLOY_DIR) && \ + cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR) && \ + ./bump-js-versions.sh && \ + ([ ! -x deploy-local.sh ] || ./deploy-local.sh)