From 716b4eba19a30585910346cfa92d1e38fcfced9a Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Fri, 11 Nov 2016 19:23:46 -0800 Subject: [PATCH] Fix publish recipe (#59) Sed command didn't deal with variable amounts of whitespace. --- justfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/justfile b/justfile index ed42d9f..e649832 100644 --- a/justfile +++ b/justfile @@ -17,18 +17,18 @@ build: check: cargo check -version = `sed -En 's/version = "([^"]+)"/\1/p' Cargo.toml` +version = `sed -En 's/version[[:space:]]*=[[:space:]]*"([^"]+)"/v\1/p' Cargo.toml` publish: clippy build git branch | grep '* master' git diff --no-ext-diff --quiet --exit-code - git co -b v{{version}} + git co -b {{version}} git push github cargo publish - git tag -a "v{{version}}" -m "v{{version}}" + git tag -a {{version}} -m {{version}} git push github --tags git push origin --tags - @echo 'Remember to merge the v{{version}} branch on GitHub!' + @echo 'Remember to merge the {{version}} branch on GitHub!' done BRANCH: git checkout {{BRANCH}}