cargo.sh 293 Bytes
Newer Older
1 2 3 4 5
#!/bin/sh

if [[ $DEBUG = true ]]
then
    echo "DEBUG MODE"
6
    cargo build --manifest-path $1/Cargo.toml && cp $1/target/debug/libgepub_internals.a $2.a
7 8
else
    echo "RELEASE MODE"
9
    cargo build --manifest-path $1/Cargo.toml --release && cp $1/target/release/libgepub_internals.a $2.a
10
fi