Files
pezkuwi-subxt/substrate/scripts/build.sh
T
Pierre Krieger f210557211 Require --locked when building runtime (#2813)
* Require --locked when building runtime

* Update locks

* Do it in a different way

* Accidentally reverted Cargo.lock

* pass on arguments in build.sh scripts
2019-06-06 15:53:22 +02:00

29 lines
426 B
Bash
Executable File

#!/usr/bin/env bash
# This script assumes that all pre-requisites are installed.
set -e
PROJECT_ROOT=`git rev-parse --show-toplevel`
source "`dirname \"$0\"`/common.sh"
export CARGO_INCREMENTAL=0
# Save current directory.
pushd .
cd -- "$ROOT"
for SRC in "${SRCS[@]}"
do
echo "*** Building wasm binaries in $SRC"
cd "$PROJECT_ROOT/$SRC"
./build.sh $@
cd - >> /dev/null
done
# Restore initial directory.
popd