galah 0.1.0

Microbial genome dereplicator
Documentation
#!/bin/bash -e

set -o pipefail

export VERSION=`cargo run -- --version |awk '{print $2}'`

# For dashing which does not currently work on desktop via conda.
export PATH=~/bioinfo/dashing:$PATH

echo "Found version $VERSION .."

echo "Building normally .."
cargo build --release

echo "Testing release version .."
cargo test --release

echo "Building musl static binary .."
cargo build --target x86_64-unknown-linux-musl --release

echo "Making static dist .."
mkdir dist/galah-x86_64-unknown-linux-musl-$VERSION
cp \
 target/x86_64-unknown-linux-musl/release/galah \
 dist/galah-x86_64-unknown-linux-musl-$VERSION/
cd dist
tar czf galah-x86_64-unknown-linux-musl-$VERSION.tar.gz galah-x86_64-unknown-linux-musl-$VERSION
cd ..

echo "Now make sure git is up to date, and run cargo publish"