|
|
|
@ -3,9 +3,15 @@
|
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
|
|
TEMPLATE_DIR=$1
|
|
|
|
|
if [ -z "${TEMPLATE_DIR}" ]; then echo "template dir required"; exit 1; fi
|
|
|
|
|
if [ -z "${TEMPLATE_DIR}" ]; then
|
|
|
|
|
echo "template dir required"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
PROG_TYPE=$2
|
|
|
|
|
if [ -z "${PROG_TYPE}" ]; then echo "program type required"; exit 1; fi
|
|
|
|
|
if [ -z "${PROG_TYPE}" ]; then
|
|
|
|
|
echo "program type required"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
CRATE_NAME=aya-test-crate
|
|
|
|
|
|
|
|
|
|
case "${PROG_TYPE}" in
|
|
|
|
@ -41,6 +47,7 @@ case "${PROG_TYPE}" in
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
ADDITIONAL_ARGS=()
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
TMP_DIR=$(mktemp -d)
|
|
|
|
|