Commit 37b6036f authored by Tobias Dussa's avatar Tobias Dussa
Browse files

Updated Makefile; updated output test pdfs.

parent 02e1aae3
FILESTOBEFIXED=$(wildcard *.tex)
INPUTFILES=$(wildcard *.tex)
FILESTOBEFIXED=$(wildcard written_statement*.tex)
INPUTFILES=$(wildcard written_statement*.tex)
TESTFILES=$(subst .tex,.pdf,$(INPUTFILES))
default: fix
......@@ -9,7 +10,14 @@ $(FILESTOBEFIXED):
@if ! git status "$@" | fgrep -q "working directory clean"; then TAGLINE=$$(git log -1 --date=short --pretty=format:"$$(basename ""$@"") $$(git log --oneline --abbrev-commit --all | wc -l) %ci %ae" | sed "s/ +/+/"); echo Fixing Id keyword in "$@".; sed -e "s|\\\\svnInfo \(\\$$\)Id.*$$|\\\\svnInfo \1Id: $${TAGLINE} \1|" -i "$@"; fi
@git add "$@"
%.pdf: %.tex
@sed -r -e '/^[A-Z_]*_(START|END)/d' -e 's/REQUEST_SERIAL_VALUE/12345678/' -e 's/([A-Z])_([A-Z])/\1\\_\2/g' -e 's/@text_directory@\///' "$<" > "$<.test"
@if pdflatex $<.test; then mv "$<.pdf" "$@"; git add "$@"; fi
@rm $<.*
fix: $(FILESTOBEFIXED)
test: $(TESTFILES)
clean:
git clean --force
No preview for this file type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment