Skip to content

Commit

Permalink
update distributable to include readme and license
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Sep 8, 2016
1 parent a744ec1 commit 96e87ab
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions ci/before_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,22 @@ set -ex

# Generate artifacts for release
mk_artifacts() {
RUSTFLAGS="-C target-feature=+ssse3" cargo build --target $TARGET --release --features simd-accel
RUSTFLAGS="-C target-feature=+ssse3" \
cargo build --target $TARGET --release --features simd-accel
}

mk_tarball() {
# create a "staging" directory
local td=$(mktempd)
local out_dir=$(pwd)
local name="${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}"
mkdir "$td/$name"

# TODO update this part to copy the artifacts that make sense for your project
# NOTE All Cargo build artifacts will be under the 'target/$TARGET/{debug,release}'
cp target/$TARGET/release/rg $td
cp target/$TARGET/release/rg "$td/$name/"
cp {README,UNLICENSE,COPYING,LICENSE_MIT} "$td/$name/"

pushd $td

# release tarball will look like 'rust-everywhere-v1.2.3-x86_64-unknown-linux-gnu.tar.gz'
tar czf $out_dir/${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.tar.gz *

tar czf "$out_dir/$name.tar.gz" *
popd
rm -r $td
}
Expand Down

0 comments on commit 96e87ab

Please sign in to comment.