
The landslide.sh script (re)builds all presentations in the upstream-training directory. Change-Id: I26487da60d486e4c5346c72673fbf24e796d1c17
15 lines
363 B
Bash
Executable File
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
|