first commit.
This commit is contained in:
18
scripts/build.sh
Executable file
18
scripts/build.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
which idf.py >/dev/null || {
|
||||
source ~/export-esp.sh >/dev/null 2>&1
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
"" | "release")
|
||||
cargo build --release
|
||||
;;
|
||||
"debug")
|
||||
cargo build
|
||||
;;
|
||||
*)
|
||||
echo "Wrong argument. Only \"debug\"/\"release\" arguments are supported"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
Reference in New Issue
Block a user