Skip to content

Commit

Permalink
Final changes to Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
afinetooth committed Aug 13, 2024
1 parent 32f0cec commit fa8ec24
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ release: release_linux
.ONESHELL:
new_version:
@read -p "New version: " version; \
@read -p "Brief description: " description; \
read -p "Brief description: " description; \
echo "Version: $$version"; \
echo "Description: $$description"; \
sed -i '' "s/version:.*/version: $${version}/" shard.yml; \
sed -i '' "s/VERSION = .*/VERSION = \"$${version}\"/" src/coverage_reporter.cr; \
sed -i '' "s/VERSION = .*/VERSION = \"$$version\"/" src/coverage_reporter.cr; \
git add shard.yml src/coverage_reporter.cr; \
git commit --message "$${version}: $${description}"; \
git tag --annotate v$${version} --message "$${version}: $${description}"; \
Expand Down

0 comments on commit fa8ec24

Please sign in to comment.