2021-05-30 11:30:40 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
TARGET=${TARGET-x86_64-unknown-linux-gnu}
|
|
|
|
if [ "$TARGET" != "" ]; then
|
|
|
|
TGT="--target $TARGET"
|
|
|
|
fi
|
|
|
|
VERSION=debug
|
|
|
|
if [[ "$1" == "--release" ]]; then
|
|
|
|
VERSION=release
|
|
|
|
fi
|
2021-06-19 07:39:59 +02:00
|
|
|
|
|
|
|
cargo build --verbose $TGT $1
|
2021-10-28 13:36:51 +02:00
|
|
|
if [ ! -e ./youki ]; then
|
|
|
|
rm -f youki
|
|
|
|
fi
|
|
|
|
if [ ! -e ./youki_integration_test ]; then
|
|
|
|
rm -f youki_integration_test
|
|
|
|
fi
|
2021-05-30 11:30:40 +02:00
|
|
|
cp target/$TARGET/$VERSION/youki .
|
2021-10-21 18:09:26 +02:00
|
|
|
cp target/$TARGET/$VERSION/integration_test ./youki_integration_test
|