mirror of
https://github.com/containers/youki
synced 2024-12-04 02:58:22 +01:00
15 lines
264 B
Bash
Executable File
15 lines
264 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
|
|
rm -f youki
|
|
cp target/$TARGET/$VERSION/youki .
|