diff --git a/Makefile b/Makefile index abc48f4..5e3a47b 100644 --- a/Makefile +++ b/Makefile @@ -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