From 4a352d363be999fb85e3d33a2c559492de61b421 Mon Sep 17 00:00:00 2001 From: Cameron Smith Date: Wed, 3 Jan 2024 13:24:38 -0500 Subject: [PATCH] feat(make): add update_version target Signed-off-by: Cameron Smith --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Makefile b/Makefile index f4e92ef91..853d909d7 100644 --- a/Makefile +++ b/Makefile @@ -365,6 +365,25 @@ approve_prs: ## Approve github pull requests from bots: PR_ENTRIES="2-5 10 12-18 fi; \ done +PREVIOUS_VERSION := 0.1.3 +NEXT_VERSION := 1.0.0 + +VERSION_FILES := \ + conda/colab/construct.yaml \ + containers/gpu.Dockerfile \ + containers/pkg.Dockerfile \ + docs/source/notebooks/pyrovelocity_colab_template.ipynb + +update_version: ## Update version in VERSION_FILES. + @for file in $(VERSION_FILES); do \ + if [ -f $$file ]; then \ + sed -i 's/$(PREVIOUS_VERSION)/$(NEXT_VERSION)/g' $$file; \ + echo "Updated $$file"; \ + else \ + echo "$$file does not exist"; \ + fi \ + done + #---------------- # web application