#!/bin/sh+− set -e+− +− #subdirs="slides handouts hws"+− subdirs="hws"+− +− echo $subdirs+− +− for sd in $subdirs; do+− cd $sd+− for fl in *.tex; do+− xelatex $fl+− done+− cd ..+− done+−