emscripten_docker/povray_wasm/compile.sh

19 lines
349 B
Bash
Raw Normal View History

#!/bin/bash
2021-09-16 01:20:15 +00:00
#latest-stable#v3.7.0.0
POVRAY_VERSION=3.7-stable
if [ ! -d povray ]; then
git clone --depth 1 --branch $POVRAY_VERSION https://github.com/POV-Ray/povray povray
fi
cp build.sh povray/build.sh
2021-09-15 05:27:43 +00:00
sudo docker build . -t povray_wasm
cd povray
2021-09-15 05:27:43 +00:00
sudo docker run \
-v $PWD:/usr/src \
povray_wasm \
sh -c 'cd /usr/src && bash build.sh'