#!/bin/bash

name="sccache-$TRAVIS_TAG-$TARGET"
mkdir $name
cp target/$TARGET/release/sccache $name/
cp README.md LICENSE $name/
tar czvf $name.tar.gz $name

# Get the sha-256 checksum w/o filename and newline
echo -n $(shasum -ba 256 "$name.tar.gz" | cut -d " " -f 1) > $name.tar.gz.sha256
