28 lines
391 B
Bash
28 lines
391 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
export CARGO=`which cargo`
|
||
|
|
||
|
if [ -z "${TARGET-}" ]; then
|
||
|
echo "No target defined. build all doesn't exist yet"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
if [ -z "${CMD-}" ]; then
|
||
|
CMD="release"
|
||
|
fi
|
||
|
|
||
|
export CMD
|
||
|
|
||
|
case $TARGET in
|
||
|
ifc)
|
||
|
MODULE=ifc builders/rust.sh
|
||
|
;;
|
||
|
"")
|
||
|
echo "No target defined. build all doesn't exist yet"
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
|