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