@@ -59,16 +59,17 @@ increment_version:
59
59
commit_changes :
60
60
@$(call check_tag_number) \
61
61
rm $(TAG_NUMBER_FILE); \
62
- git add .; \
63
- git commit -m "updated to $$TAG_NUMBER"; \
64
- echo "Changes committed with tag $$TAG_NUMBER."; \
62
+ # git add .; \
63
+ # git commit -m "updated to $$TAG_NUMBER"; \
64
+ # echo "Changes committed with tag $$TAG_NUMBER."; \
65
65
echo "$$TAG_NUMBER" > $(TAG_NUMBER_FILE);
66
66
67
67
# Create a git tag with the given tag number
68
68
create_tag :
69
69
@$(call check_tag_number) \
70
70
git tag " $$ TAG_NUMBER" ; \
71
- echo " Tag $$ TAG_NUMBER created." ;
71
+ echo " Tag $$ TAG_NUMBER created." ; \
72
+ rm $(TAG_NUMBER_FILE ) ;
72
73
73
74
74
75
# Push the changes to the origin branch
@@ -86,23 +87,24 @@ push_tags:
86
87
# Clean up
87
88
clean :
88
89
@echo " Cleaning up..."
89
- @git reset --hard HEAD
90
+ @git reset --soft HEAD
90
91
@echo " Cleanup done."
91
- @rm $(TAG_NUMBER_FILE ) ;
92
+ @rm $(TAG_NUMBER_FILE )
92
93
93
94
94
95
# Help message
95
96
help :
96
97
@echo " Usage:"
97
98
@echo " make update_version <tag_number>"
98
99
@echo " Targets:"
99
- @echo " all Updates version, commits changes, creates a tag, and pushes changes."
100
+ @echo " all Updates version, commits changes, creates a tag, and pushes changes."
101
+ @echo " increment_version Increments the version in by 1 patch level."
100
102
@# echo " update_version Updates the version in pom.xml."
101
- @echo " commit_changes Commits the changes with a message."
102
- @echo " create_tag Creates a git tag."
103
- @echo " push_changes Pushes changes to the origin branch."
104
- @echo " push_tags Pushes all tags to the remote repository."
105
- @echo " clean Resets changes to HEAD."
103
+ @echo " commit_changes Commits the changes with a message."
104
+ @echo " create_tag Creates a git tag."
105
+ @echo " push_changes Pushes changes to the origin branch."
106
+ @echo " push_tags Pushes all tags to the remote repository."
107
+ @echo " clean Resets changes to HEAD."
106
108
107
109
# Handle arguments for the update_version target
108
110
% :
0 commit comments