mirror of
https://github.com/NotXia/unibo-ai-notes.git
synced 2025-12-16 03:21:48 +01:00
Update compiled file name <noupdate>
This commit is contained in:
@ -74,18 +74,18 @@ for f in **/[!_]*.tex; do
|
|||||||
cd ${f_dir}
|
cd ${f_dir}
|
||||||
|
|
||||||
# Save copy of source .tex
|
# Save copy of source .tex
|
||||||
cp main.tex main.bkp.tex
|
cp $f_base $f_base.bkp
|
||||||
|
|
||||||
# Insert last update date
|
# Insert last update date
|
||||||
last_update=`getLastUpdateDate`
|
last_update=`getLastUpdateDate`
|
||||||
sed -i "s/PLACEHOLDER-LAST-UPDATE/${last_update}/" main.tex
|
sed -i "s/PLACEHOLDER-LAST-UPDATE/${last_update}/" $f_base
|
||||||
|
|
||||||
# Compile
|
# Compile
|
||||||
latexmk -pdf -jobname=${f_nameonly} ${f_base}
|
latexmk -pdf -jobname=${f_nameonly} ${f_base}
|
||||||
mv ${f_nameonly}.pdf $out_dir/${f_dir}/.
|
mv ${f_nameonly}.pdf $out_dir/${f_dir}/.
|
||||||
|
|
||||||
# Restore source
|
# Restore source
|
||||||
mv main.bkp.tex main.tex
|
mv $f_base.bkp $f_base
|
||||||
|
|
||||||
cd $work_dir
|
cd $work_dir
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user