26 lines
609 B
Bash
Executable File
26 lines
609 B
Bash
Executable File
#!/bin/bash
|
|
|
|
FEATURE=""
|
|
|
|
# Check if "mock-machine" was passed as an argument
|
|
if [[ "$1" == "mock-machine" ]]; then
|
|
echo "Building Debug Code with mock-machine feature"
|
|
FEATURE="--features mock-machine"
|
|
fi
|
|
if [[ "$1" == "release" ]]; then
|
|
echo "building Release Code"
|
|
cargo build --release
|
|
else
|
|
echo "Building Debug Code"
|
|
cargo build $FEATURE
|
|
fi
|
|
|
|
# Only setcap if not building with mock-machine
|
|