forked from obonaventure/SystemesInformatiques
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sh
executable file
·43 lines (34 loc) · 1.07 KB
/
build.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
#!/bin/bash
# on error exit
set -e
# Flags used here, not in `make html`:
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
# -W Turwarnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
# -N Do not emi colors
# -T output full traceback
# --keep-going continue the processing after a warning
cd Theorie
echo "**** Theorie ****"
# old version:
# sphinx-build -nWNT --keep-going -b html . ../web/notes/Theorie
sphinx-build -nN -b html . ../web/notes/Theorie
# make html
sphinx-build -b epub . ../web/distrib
# sphinx-build -b latex . ../web/distrib
# cd ../web/distrib
# pdflatex LEPL1503-LINFO1252.tex
# cd ..
#sphinx-build -b spelling . /tmp
cd ..
cd Outils
echo "**** Outils ****"
sphinx-build -nN -b html . ../web/notes/Outils
# epub buliding fails, commented
# sphinx-build -b epub . ../web/distrib
#sphinx-build -b spelling . /tmp
cd ..
cd Exercices
echo "**** Exercices ****"
sphinx-build -nN -b html . ../web/notes/Exercices
#sphinx-build -b spelling . /tmp
cd ..