forked from qmch/partiii-lecture-notes-201819
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autopdf.sh
76 lines (63 loc) · 1.58 KB
/
autopdf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
echo "Updating local files."
git pull
echo "Beginning PDF-making!"
#TeX the GR notes and copy them to the PDFs folder
#cd ./michaelmas/gr
#latexmk -pdf gr-notes-partiii.tex
#latexmk -c
#mv gr-notes-partiii.pdf ../../pdfs
#same thing for QFT
#cd ../qft
#latexmk -pdf qft-notes-partiii.tex
#latexmk -c
#mv qft-notes-partiii.pdf ../../pdfs
#and for Symmetries!
#cd ../sfp
#latexmk -pdf sfp-notes-partiii.tex
#latexmk -c
#mv sfp-notes-partiii.pdf ../../pdfs
#return to home directory
#cd ../..
#move to lent term and TeX the AQFT notes
cd ./lent/aqft
latexmk -pdf aqft-notes-partiii.tex
latexmk -c
mv aqft-notes-partiii.pdf ../../pdfs
#black holes
cd ../bh
latexmk -pdf bh-notes-partiii.tex
latexmk -c
mv bh-notes-partiii.pdf ../../pdfs
#quantum information
cd ../qi
latexmk -pdf qi-notes-partiii.tex
latexmk -c
mv qi-notes-partiii.pdf ../../pdfs
#standard model
#cd ../sm
#latexmk -pdf sm-notes-partiii.tex
#latexmk -c
#mv sm-notes-partiii.pdf ../../pdfs
#supersymmetry
#cd ../susy
#latexmk -pdf susy-notes-partiii.tex
#latexmk -c
#mv susy-notes-partiii.pdf ../../pdfs
#and string theory
#cd ../str
#latexmk -pdf str-notes-partiii.tex
#latexmk -c
#mv str-notes-partiii.pdf ../../pdfs
#and gauge/gravity for easter
cd ../../easter/ggd
latexmk -pdf ggd-notes-partiii.tex
latexmk -c
mv ggd-notes-partiii.pdf ../../pdfs
echo "PDFs made. Pushing to the remote."
#finally, return to the home directory, git add, and git commit.
cd ../.. #to the main directory
git add . #add all the updated files
git commit -m "PDFs updated! See last commit message(s) for details."
git push
echo "autopdf complete."