Make sure version in app.rs and Cargo.toml match before publishing

This commit is contained in:
Casey Rodarmor 2016-10-23 16:45:46 -07:00
parent acc97a4eba
commit 90078b5956

View File

@ -1,12 +1,15 @@
test: test:
cargo test --lib cargo test --lib
# cargo run -- quine clean > /dev/null 2> /dev/null test-quine:
cargo run -- quine clean
backtrace: backtrace:
RUST_BACKTRACE=1 cargo test --lib RUST_BACKTRACE=1 cargo test --lib
publish: publish:
# make sure version is up to date
grep 'version("'`sed -En 's/version = "([^"]+)"/\1/p' Cargo.toml`'")' src/app.rs
git push github master git push github master
cargo publish cargo publish