Simplify file names
This commit is contained in:
parent
13f3e11296
commit
de5bfecc54
3 changed files with 15 additions and 17 deletions
|
@ -1,24 +1,22 @@
|
|||
timestamp=$(shell date +%Y-%m-%d_%H:%M)
|
||||
texfile20210922=contrat-independant-romance-martin
|
||||
texfile20210927=clause-remuneration
|
||||
|
||||
all: 20210922 20210927
|
||||
all: tp1 tp2
|
||||
|
||||
20210922: contrat-independant-romance-martin.tex
|
||||
@latexmk -pdf ${texfile20210922}.tex
|
||||
@if ! cmp --silent build/${texfile20210922}.pdf ${texfile20210922}_*.pdf; then \
|
||||
touch ${texfile20210922}_tmp.pdf; \
|
||||
rm ${texfile20210922}*.pdf; \
|
||||
cp build/${texfile20210922}.pdf ${texfile20210922}_${timestamp}.pdf; \
|
||||
tp1: tp1.tex
|
||||
@latexmk -pdf tp1.tex
|
||||
@if ! cmp --silent build/tp1.pdf tp1_*.pdf; then \
|
||||
touch tp1_tmp.pdf; \
|
||||
rm tp1*.pdf; \
|
||||
cp build/tp1.pdf tp1_${timestamp}.pdf; \
|
||||
echo "Updated"; \
|
||||
fi
|
||||
|
||||
20210927: clause-remuneration.tex
|
||||
@latexmk -pdf ${texfile20210927}.tex
|
||||
@if ! cmp --silent build/${texfile20210927}.pdf ${texfile20210927}_*.pdf; then \
|
||||
touch ${texfile20210927}_tmp.pdf; \
|
||||
rm ${texfile20210927}*.pdf; \
|
||||
cp build/${texfile20210927}.pdf ${texfile20210927}_${timestamp}.pdf; \
|
||||
tp2: tp2.tex
|
||||
@latexmk -pdf tp2.tex
|
||||
@if ! cmp --silent build/tp2.pdf tp2_*.pdf; then \
|
||||
touch tp2_tmp.pdf; \
|
||||
rm tp2*.pdf; \
|
||||
cp build/tp2.pdf tp2_${timestamp}.pdf; \
|
||||
echo "Updated"; \
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
\documentclass[a4paper,french]{article}
|
||||
|
||||
\title{Exercice --- Droit du travail}
|
||||
\title{TP1 --- Droit du travail}
|
||||
\author{}
|
||||
\date{22 septembre 2021}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
\documentclass[a4paper,french]{article}
|
||||
|
||||
\title{Exercice --- Droit du travail}
|
||||
\title{TP2 --- Droit du travail}
|
||||
\author{}
|
||||
\date{27 septembre 2021}
|
||||
|
Loading…
Reference in a new issue