Resctructuration pour faciliter la gestion des programmes.

This commit is contained in:
Benjamin Bohard
2013-08-01 17:47:32 +02:00
parent 334f927dc4
commit 6827c86517
62 changed files with 895 additions and 26 deletions

18
programme.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
function path_to_name {
PROGRAMPATH=$1
echo ${PROGRAMPATH//\_/\ }
}
PWD=$(pwd)
for directory in $(find . -name programme -type d); do
cat > programme_options.tex <<EOB
\\newcommand{\\formation}{$(path_to_name $(basename ${directory%/programme}))}
\\newcommand{\\dossier}{$directory}
EOB
#cat programme_options.tex
xelatex programme.tex
xelatex programme.tex
mv programme.pdf $directory/plan_de_formation_$(basename ${directory%/programme}).pdf
rm -f programme_options.tex
done