Skip to content

Commit

Permalink
Merge pull request #139 from coverallsapp/chore/fix-makefile-new-version
Browse files Browse the repository at this point in the history
Modify Makefile to fix issues with sed handling inputs.
  • Loading branch information
afinetooth authored Aug 13, 2024
2 parents d7b8c66 + fa8ec24 commit 9057b0b
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ release: release_linux

.ONESHELL:
new_version:
@read -p "New version: " version
@read -p "Brief description: " description
sed -i "s/version:.*/version: $$version/" shard.yml
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 --message "$$version: $$description" v$$version
@read -p "New version: " version; \
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; \
git add shard.yml src/coverage_reporter.cr; \
git commit --message "$${version}: $${description}"; \
git tag --annotate v$${version} --message "$${version}: $${description}"; \
git push origin master --follow-tags

0 comments on commit 9057b0b

Please sign in to comment.