Skip to content

Commit

Permalink
feat(make): add update_version target
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <[email protected]>
  • Loading branch information
cameronraysmith committed Jan 3, 2024
1 parent 7df9970 commit 4a352d3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a352d3

Please sign in to comment.