Skip to content

Commit 9d4d9cf

Browse files
committed
Replaced contributors.tex with texutils subomdule
1 parent a07bbe8 commit 9d4d9cf

File tree

6 files changed

+21
-14
lines changed

6 files changed

+21
-14
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@
3838
*.vrb
3939
*.xdy
4040
/revision.tex
41-
/contributors.tex

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "texutils"]
2+
path = texutils
3+
url = [email protected]:dbrgn/texutils.git

CN1.tex

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
\input{preamble.tex}
22
\input{revision.tex}
3-
\input{contributors.tex}
3+
\input{texutils/authorsfromfile.tex}
4+
45

56
\subject{Computernetzwerke 1}
67
\title{CN1 Zusammenfassung}
7-
\author{\contributors}
8+
\authorsfromfile{CONTRIBUTORS.txt}{\url{https://github.com/HSR-Stud/}}
89
\date{Stand: \revisiondate}
910

1011

Makefile

+3-8
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,23 @@ TARGET=CN1.pdf
33
LL=latexmk -pdf
44
CLEAN=latexmk -C
55

6-
all: revision.tex contributors.tex $(TARGET) refresh
6+
all: revision.tex $(TARGET) refresh
77

8-
pdf: revision.tex contributors.tex $(TARGET) refresh
8+
pdf: revision.tex $(TARGET) refresh
99

10-
.PHONY : clean revision.tex contributors.tex $(TARGET) refresh mupdf
10+
.PHONY : clean revision.tex $(TARGET) refresh mupdf
1111

1212
revision.tex:
1313
echo "% Autogenerated, do not edit" > revision.tex
1414
echo "\\newcommand{\\revisiondate}{`git log -1 --format=\"%ad\" --date=short`}" >> revision.tex
1515
echo "\\newcommand{\\revision}{`git log -1 --format=\"%h\"`}" >> revision.tex
1616

17-
contributors.tex:
18-
echo "% Autogenerated, do not edit" > contributors.tex
19-
echo "\\newcommand{\\contributors}{`awk '{split($$0, a, \"(\"); gsub(/[ \t]+$$/, \"\", a[1]); printf(\"%s, \", a[1])}' CONTRIBUTORS.txt | sed 's/, $$//'`}" >> contributors.tex
20-
2117
$(TARGET): $(TARGET:%.pdf=%.tex) $(SRC)
2218
$(LL) $<
2319

2420
clean:
2521
$(CLEAN)
2622
rm -f revision.tex
27-
rm -f contributors.tex
2823

2924
refresh:
3025
-killall -HUP mupdf || echo "Mupdf not started, no refreshing."

README.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
CN1
22
===
33

4-
Work in progress.
5-
64
Jeweils aktuelle Version gibts hier: http://latexbuilder.dbrgn.ch/pdf/CN1/CN1.pdf
75

8-
License: CC by-sa 3.0
6+
Building
7+
--------
8+
9+
git submodule init
10+
git submodule update
11+
make
12+
13+
Lizenz
14+
------
15+
16+
CC by-sa 3.0, siehe LICENSE.txt

texutils

Submodule texutils added at fb08d9e

0 commit comments

Comments
 (0)