mk
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Sat, 31 Oct 2015 11:16:52 +0000
changeset 363 0d6deecdb2eb
parent 332 4755ad4b457b
child 630 9b1c15c3eb6f
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
317
a61b50c5d57f updated all
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
#!/bin/sh
322
698ed1c96cd0 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 318
diff changeset
     2
set -e
317
a61b50c5d57f updated all
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     3
332
4755ad4b457b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 322
diff changeset
     4
subdirs=${1:-"slides handouts hws coursework"} 
317
a61b50c5d57f updated all
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     5
a61b50c5d57f updated all
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     6
for sd in $subdirs; do
a61b50c5d57f updated all
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     7
  cd $sd
a61b50c5d57f updated all
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     8
  for fl in *.tex; do
a61b50c5d57f updated all
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     9
     xelatex $fl
a61b50c5d57f updated all
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    10
  done
a61b50c5d57f updated all
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    11
  cd ..
a61b50c5d57f updated all
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    12
done