Makes the number of cores for make a variable.

This commit is contained in:
Maxime Gimeno 2018-03-15 14:15:13 +01:00
parent ec40acf2c3
commit ab87194583
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash
if [ "$1" == '--help' ]; then
echo "Usage: $0 <path to CGAL> <path to output>"
echo "Usage: $0 <path to CGAL> <path to output> <number of cores to dedicate>"
echo "Builds and packages the Polyhedron demo form the CGAL dir."
exit 0
fi
docker run --rm -v "$2":/results:Z -v "$1":/cgal:ro docker.io/cgal/bundle-3d-demo '/scripts/build.sh -j6 && /scripts/deploy.sh'
docker run --rm -v "$2":/results:Z -v "$1":/cgal:ro docker.io/cgal/bundle-3d-demo "/scripts/build.sh -j$3 && /scripts/deploy.sh"