aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2016-04-27 17:28:54 -0400
committerTeddy Wing2016-04-27 17:28:54 -0400
commite8f9b8b1a53a3fb7457933cbc1fbd0f9a37d0ae3 (patch)
tree0127a497465016b3ba8fd9247ed7eff4465b7b70
parent665df66a7cd103b97dcd6667b02a051a797719a3 (diff)
downloadmutt-alias-auto-add-e8f9b8b1a53a3fb7457933cbc1fbd0f9a37d0ae3.tar.bz2
Makefile: Add task to compress/package a release build
Provide a convenient way of creating a binary package that can be uploaded to the GitHub releases page.
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c7b665e..5f5154e 100644
--- a/Makefile
+++ b/Makefile
@@ -10,3 +10,8 @@ test-all: test test-integration
reinstall:
cargo uninstall alias-auto-add
cargo install
+
+package:
+ cargo build --release
+ version=`cat Cargo.toml | grep version | awk '{ gsub("\"", ""); print $$3 }'`; \
+ xz --compress --to-stdout ./target/release/alias-auto-add > alias-auto-add_$${version}_osx_amd64.xz