
make confirmation easier in the local machine. Change-Id: I4009b6c3de608a35291ef2938b667ecc7aa7e962
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 -i -d "${presentation_name}.html" "${presentation}"
|
|
done
|