Skip to content

Commit

Permalink
Initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Segmentational committed May 26, 2024
1 parent b2ee8ac commit 4017af8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
23 changes: 17 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,26 @@ major-upgrade = $(shell expr $(major) + 1).$(minor).$(patch)
minor-upgrade = $(major).$(shell expr $(minor) + 1).$(patch)
patch-upgrade = $(major).$(minor).$(shell expr $(patch) + 1)

dirty = $(shell git diff --shortstat 2>/dev/null 2>/dev/null | tail -n1)
dirty = $(shell git diff --quiet)
dirty-contents = $(shell git diff --shortstat 2>/dev/null 2>/dev/null | tail -n1)



# ====================================================================================
# Package-Specific Target(s)
# ------------------------------------------------------------------------------------

bump:
@$(information) Bumping $(name) package VERSION from $(version)
fail:

@echo $(patch-upgrade) > VERSION

@$(complete) Version Bump
bump:
if [[ ! $(git diff --quiet --exit-code) ]]; then ;\
@echo "$(red-bold)Dirty Working Tree$(reset) - Commit Changes and Try Again" ;\
exit 1 ;\
else ;\
@echo "$(blue-bold)Version Bump$(reset): Current Version - $(version)" ;\
@echo $(patch-upgrade) > VERSION ;\
@echo "$(green-bold)Updated Version$(reset): $(verison)" ;\
fi

commit:
@git add VERSION
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.8
0.1.11

0 comments on commit 4017af8

Please sign in to comment.