version envoyée à Alain le 4 mai
This commit is contained in:
parent
a1eb2d34cc
commit
d36710e9a2
18
build.sh
18
build.sh
@ -1,6 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Reconstruit tout !
|
# Reconstruit tout !
|
||||||
|
# Avec --ccn edition "ministère"
|
||||||
|
usage() {
|
||||||
|
echo "$0 [--ccn] doc_ressources doc_sae"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
[ $# != 2 ] || [ $# != 3 ] || usage
|
||||||
|
CCN=""
|
||||||
|
if [ "$1" == "--ccn" ]
|
||||||
|
then
|
||||||
|
CCN="--ccn"
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
ressources="$1"
|
ressources="$1"
|
||||||
saes="$2"
|
saes="$2"
|
||||||
@ -12,8 +24,8 @@ die() {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
[ "$ressources" ] || die "Usage: $0 doc_ressources doc_sae"
|
[ "$ressources" ] || usage
|
||||||
[ "$saes" ] || die "Usage: $0 doc_ressources doc_sae"
|
[ "$saes" ] || usage
|
||||||
[ -d python ] || die "repertoire manquant: python"
|
[ -d python ] || die "repertoire manquant: python"
|
||||||
[ -d latex ] || die "repertoire manquant: latex"
|
[ -d latex ] || die "repertoire manquant: latex"
|
||||||
|
|
||||||
@ -21,7 +33,7 @@ die() {
|
|||||||
|
|
||||||
python python/export_docx_to_yaml.py "$ressources" -o "python/export" -r . || die "echec de export_docx_to_yaml.py"
|
python python/export_docx_to_yaml.py "$ressources" -o "python/export" -r . || die "echec de export_docx_to_yaml.py"
|
||||||
python python/export_sae_docx_to_yaml.py "$saes" -o "python/export" -r . || die "echec de export_sae_docx_to_yaml.py"
|
python python/export_sae_docx_to_yaml.py "$saes" -o "python/export" -r . || die "echec de export_sae_docx_to_yaml.py"
|
||||||
python python/export_yaml_to_latex.py -a -r . || die "echec de export_yaml_to_latex.py"
|
python python/export_yaml_to_latex.py "$CCN" -a -r . || die "echec de export_yaml_to_latex.py"
|
||||||
|
|
||||||
cd latex || die "repertoire manquant: latex"
|
cd latex || die "repertoire manquant: latex"
|
||||||
lualatex pn_formation
|
lualatex pn_formation
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user