Makefile zum Bauen und Veröffentlichen des Berichts
This commit is contained in:
parent
95f9d653cb
commit
88ef8240f3
29
.gitignore
vendored
Normal file
29
.gitignore
vendored
Normal 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
9
bericht/Makefile
Normal 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
8
bericht/README.md
Normal 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
12
bericht/check_cmds.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user