diff --git a/build.sh b/build.sh index c0697a4..8f92f21 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,18 @@ #!/bin/bash # 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" saes="$2" @@ -12,8 +24,8 @@ die() { exit 1 } -[ "$ressources" ] || die "Usage: $0 doc_ressources doc_sae" -[ "$saes" ] || die "Usage: $0 doc_ressources doc_sae" +[ "$ressources" ] || usage +[ "$saes" ] || usage [ -d python ] || die "repertoire manquant: python" [ -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_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" lualatex pn_formation diff --git a/python/import/ressources_4mai21.docx b/python/import/ressources_4mai21.docx index 522b117..bb89b43 100644 Binary files a/python/import/ressources_4mai21.docx and b/python/import/ressources_4mai21.docx differ diff --git a/python/import/saes_4mai21.docx b/python/import/saes_4mai21.docx index 10139bc..ddc81e0 100644 Binary files a/python/import/saes_4mai21.docx and b/python/import/saes_4mai21.docx differ