| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. ash |
| 2 | |
| 3 | source ${VIRTUAL_ENV}/bin/activate |
| 4 | |
| 5 | if [scip-shell system . . `[`. "$1" == "livehtml" ]; then |
| 6 | echoscip-shell system . . echo. "Starting live documentation build" |
| 7 | cd /data-in/Documentationscip-shell filesystem . . `/data-in/Documentation`. && makescip-shell system . . make. livesphinx BUILDDIR=/tmp/buildscip-shell filesystem . . `/tmp/build`. |
| 8 | else |
| 9 | echoscip-shell system . . echo. "Starting production documentation build" |
| 10 | cd /data-in/Documentationscip-shell filesystem . . `/data-in/Documentation`. \ |
| 11 | && makescip-shell system . . make. sphinx BUILDDIR=/tmp/buildscip-shell filesystem . . `/tmp/build`. \ |
| 12 | && rmscip-shell system . . rm. -rf /data-out/* \ |
| 13 | && mvscip-shell system . . mv. /tmp/build/html/* /data-out/scip-shell filesystem . . `/data-out/`. |
| 14 | fi |