fractal/scripts/cargo.sh
2018-05-11 10:37:16 +02:00

12 lines
341 B
Bash
Executable file

#!/bin/sh
export CARGO_HOME=$1/target/cargo-home
if [[ $DEBUG = true ]]
then
echo "DEBUG MODE"
cargo build --manifest-path $1/Cargo.toml -p fractal-gtk && cp $1/target/debug/fractal-gtk $2
else
echo "RELEASE MODE"
cargo build --manifest-path $1/Cargo.toml --release -p fractal-gtk && cp $1/target/release/fractal-gtk $2
fi