mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 09:40:22 -07:00
update distributable to include readme and license
This commit is contained in:
parent
a744ec133d
commit
96e87ab738
@ -6,23 +6,22 @@ set -ex
|
|||||||
|
|
||||||
# Generate artifacts for release
|
# Generate artifacts for release
|
||||||
mk_artifacts() {
|
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() {
|
mk_tarball() {
|
||||||
# create a "staging" directory
|
# create a "staging" directory
|
||||||
local td=$(mktempd)
|
local td=$(mktempd)
|
||||||
local out_dir=$(pwd)
|
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
|
cp target/$TARGET/release/rg "$td/$name/"
|
||||||
# NOTE All Cargo build artifacts will be under the 'target/$TARGET/{debug,release}'
|
cp {README,UNLICENSE,COPYING,LICENSE_MIT} "$td/$name/"
|
||||||
cp target/$TARGET/release/rg $td
|
|
||||||
|
|
||||||
pushd $td
|
pushd $td
|
||||||
|
tar czf "$out_dir/$name.tar.gz" *
|
||||||
# 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 *
|
|
||||||
|
|
||||||
popd
|
popd
|
||||||
rm -r $td
|
rm -r $td
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user