mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 21:37:56 +00:00
27 lines
430 B
Bash
Executable File
27 lines
430 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
PROJECT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." >/dev/null && pwd )"
|
|
|
|
export CARGO_INCREMENTAL=0
|
|
|
|
bold=$(tput bold)
|
|
normal=$(tput sgr0)
|
|
|
|
# Save current directory.
|
|
pushd . >/dev/null
|
|
|
|
for SRC in runtime/wasm
|
|
do
|
|
echo "${bold}Building webassembly binary in $SRC...${normal}"
|
|
cd "$PROJECT_ROOT/$SRC"
|
|
|
|
./build.sh "$@"
|
|
|
|
cd - >> /dev/null
|
|
done
|
|
|
|
# Restore initial directory.
|
|
popd >/dev/null
|