Makefile zum Bauen und Veröffentlichen des Berichts

This commit is contained in:
Jörg Thalheim 2013-10-21 18:21:28 +02:00
parent 95f9d653cb
commit 88ef8240f3
5 changed files with 58 additions and 0 deletions

29
.gitignore vendored Normal file
View File

@ -0,0 +1,29 @@
# Latex
*.aux
*.pdf
*.dvi
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
*.blg
*.dvi
*.glg
*.gls
*.ilg
*.ind
*.lof
*.lot
*.maf
*.mtc
*.mtc1
*.out
*.synctex.gz
*.fdb_latexmk
*.fls
bericht/.cmd_ok

9
bericht/Makefile Normal file
View File

@ -0,0 +1,9 @@
.cmd_ok:
./check_cmds.sh
%.pdf: %.tex
latexmk -pdf $<
all: .cmd_ok bericht.pdf
clean:
latexmk -CA
upload: all
rsync -avc bericht.pdf git@devkid.net:/var/www/lctp/bericht.pdf

8
bericht/README.md Normal file
View File

@ -0,0 +1,8 @@
Pdfs bauen mit Befehl:
$ make
Dafür wird latexmk benötigt,
das Hochladen benötigt darüber hinaus rsync:
$ make upload

Binary file not shown.

12
bericht/check_cmds.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
NEEDED_COMMANDS="rsync latexmk"
for cmd in ${NEEDED_COMMANDS} ; do
if ! command -v ${cmd} &> /dev/null ; then
echo Please install ${cmd}!
exit -1
fi
done
touch .cmd_ok