Files
191e317d8435996299ce911f240e3e9ae4e3b264
training-guides /doc /upstream-training /landslide.sh
KATO Tomoyuki fb99999892 Change landslide option -r to -i
make confirmation easier in the local machine.
Change-Id: I4009b6c3de608a35291ef2938b667ecc7aa7e962
2014年12月01日 21:13:02 +09: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 -i -d "${presentation_name}.html" "${presentation}"
done