mirror of
https://github.com/containers/youki
synced 2024-11-23 17:32:15 +01:00
21 lines
446 B
Bash
Executable File
21 lines
446 B
Bash
Executable File
#!/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
|
|
|
|
cargo build --verbose $TGT $1
|
|
if [ ! -e ./youki ]; then
|
|
rm -f youki
|
|
fi
|
|
if [ ! -e ./youki_integration_test ]; then
|
|
rm -f youki_integration_test
|
|
fi
|
|
cp target/$TARGET/$VERSION/youki .
|
|
cp target/$TARGET/$VERSION/integration_test ./youki_integration_test
|