2021-08-31 19:15:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
POVRAY_VERSION=latest-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 06:00:20 +00:00
|
|
|
sudo docker build . -t povray_gcc
|
2021-08-31 19:15:32 +00:00
|
|
|
|
|
|
|
cd povray
|
|
|
|
|
2021-09-15 06:00:20 +00:00
|
|
|
sudo docker run \
|
2021-08-31 19:15:32 +00:00
|
|
|
-v $PWD:/usr/src \
|
|
|
|
povray_gcc \
|
|
|
|
sh -c 'cd /usr/src && sh build.sh'
|