mk
author Christian Urban <urbanc@in.tum.de>
Sun, 24 Sep 2017 16:48:52 +0100
changeset 526 dac7bab6cfea
parent 518 e1fcfba63a31
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
345
7f0ac1355f0b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
#!/bin/sh
358
8787c16bc26e updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 345
diff changeset
     2
set -e
345
7f0ac1355f0b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     3
518
e1fcfba63a31 updated
Christian Urban <urbanc@in.tum.de>
parents: 385
diff changeset
     4
subdirs=${1:-"slides handouts hws coursework"} 
385
b7d055cf16e8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 358
diff changeset
     5
#subdirs="slides handouts hws"
518
e1fcfba63a31 updated
Christian Urban <urbanc@in.tum.de>
parents: 385
diff changeset
     6
#subdirs="hws"
385
b7d055cf16e8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 358
diff changeset
     7
b7d055cf16e8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 358
diff changeset
     8
echo $subdirs
345
7f0ac1355f0b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     9
7f0ac1355f0b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    10
for sd in $subdirs; do
7f0ac1355f0b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    11
  cd $sd
7f0ac1355f0b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    12
  for fl in *.tex; do
7f0ac1355f0b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    13
     xelatex $fl
7f0ac1355f0b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    14
  done
7f0ac1355f0b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    15
  cd ..
518
e1fcfba63a31 updated
Christian Urban <urbanc@in.tum.de>
parents: 385
diff changeset
    16
done