Skip to content

Commit

Permalink
adding build-binary script for convenience
Browse files Browse the repository at this point in the history
  • Loading branch information
aviaviavi committed Jun 20, 2018
1 parent 7b7e5c0 commit 6e4d87a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build-binary.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

arch="$1"
version=$(grep "^version" curl-runnings.cabal | sed 's/ //g' | cut -d ':' -f 2)
archive="curl-runnings-$version-$arch.tar.gz"

echo "Creating $archive"

stack install
cp ~/.local/bin/curl-runnings .
strip curl-runnings
tar -czvf "$archive" curl-runnings

echo "Done!"

0 comments on commit 6e4d87a

Please sign in to comment.