Tim Freund 4da93e4c96 Add landslide.sh to upstream-training
The landslide.sh script (re)builds all presentations in the
upstream-training directory.

Change-Id: I26487da60d486e4c5346c72673fbf24e796d1c17
2014-10-29 12:46:58 +01:00

15 lines
363 B
Bash
Executable File

#!/usr/bin/env bash
which landslide
LANDSLIDE_MISSING=$?
if [[ ${LANDSLIDE_MISSING} -ne 0 ]]; then
echo "landslide isn't on your path. Do you need to activate a virtual environment?"
exit 1
fi
for presentation in *.rst; do
presentation_name=$(basename "${presentation}" .rst)
landslide -r -d "${presentation_name}.html" "${presentation}"
done