author | Christian Urban <urbanc@in.tum.de> |
Sun, 24 Sep 2017 17:51:31 +0100 | |
changeset 528 | c9f28c80bb08 |
parent 518 | e1fcfba63a31 |
permissions | -rwxr-xr-x |
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 | 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 | 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 | 16 |
done |