1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-06-10 00:36:16 +02:00
youki/build.sh

15 lines
264 B
Bash
Raw Normal View History

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-05-30 11:30:40 +02:00
rm -f youki
cp target/$TARGET/$VERSION/youki .