diff options
Diffstat (limited to 'tools/compile-php-to-wasm.sh')
| -rwxr-xr-x | tools/compile-php-to-wasm.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/compile-php-to-wasm.sh b/tools/compile-php-to-wasm.sh new file mode 100755 index 0000000..19d7499 --- /dev/null +++ b/tools/compile-php-to-wasm.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +set -eux + +cd examples/compile-php-to-wasm +docker build -t nsfisis-waddiwasi-php-wasm . +docker create --name nsfisis-waddiwasi-php-wasm-tmp-container nsfisis-waddiwasi-php-wasm +docker cp nsfisis-waddiwasi-php-wasm-tmp-container:/src/php-wasm.js . +docker cp nsfisis-waddiwasi-php-wasm-tmp-container:/src/php-wasm.wasm . +docker rm nsfisis-waddiwasi-php-wasm-tmp-container |
