save
This commit is contained in:
parent
9ecf3ada89
commit
6ce81c5a5a
8 changed files with 20 additions and 18 deletions
|
@ -2,7 +2,7 @@ set -e
|
|||
echo "Building document"
|
||||
make pdf
|
||||
mkdir public
|
||||
mv build/$mainfile.pdf public
|
||||
mv build/$mainfile.log public
|
||||
mv build/.pdf public
|
||||
mv build/.log public
|
||||
cd public/
|
||||
tree -H '.' -I "index.html" -D --charset utf-8 -T "$course" > index.html
|
||||
tree -H '.' -I "index.html" -D --charset utf-8 -T "" > index.html
|
||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -46,7 +46,7 @@
|
|||
*.cnt
|
||||
|
||||
### main pdf file
|
||||
$mainfile.pdf
|
||||
.pdf
|
||||
|
||||
## build directory
|
||||
build/
|
||||
|
|
|
@ -28,6 +28,6 @@ pages:
|
|||
- public/
|
||||
script:
|
||||
- echo "Deploying to pages"
|
||||
- test -f public/$mainfile.pdf
|
||||
- test -f public/.pdf
|
||||
only:
|
||||
- master
|
||||
|
|
10
README.md
10
README.md
|
@ -1,11 +1,11 @@
|
|||
# $course
|
||||
#
|
||||
|
||||
These are the lecture notes for the '$course', taught in winter term $term at the University of Bonn.
|
||||
These are the lecture notes for the '', taught in winter term at the University of Bonn.
|
||||
|
||||
The [latest version][1] is availabe as a pdf download via GitLab runner.
|
||||
You can also have a look at the generated [log files][2] or visit the
|
||||
[gl pages][3] index directly.
|
||||
|
||||
[1]: $repo/$mainfile.pdf
|
||||
[2]: $repo/$mainfile.log
|
||||
[3]: $repo/
|
||||
[1]: /.pdf
|
||||
[2]: /.log
|
||||
[3]: /
|
||||
|
|
2
config
2
config
|
@ -1,3 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
mainfile='2021_Systemnahe_Programmierung'
|
||||
course='Systemnahe Programmierung'
|
||||
stylefile='sysprog'
|
||||
|
|
10
init.sh
10
init.sh
|
@ -1,6 +1,6 @@
|
|||
source config
|
||||
find -type f | xargs sed -i "s/\$mainfile/${mainfile}/g"
|
||||
find -type f | xargs sed -i "s/\$course/${course}/g"
|
||||
find -type f | xargs sed -i "s/\$stylefile/${stylefile}/g"
|
||||
find -type f | xargs sed -i "s/\$repo/${repo}/g"
|
||||
find -type f | xargs sed -i "s/\$term/${term}/g"
|
||||
find -type f | xargs sed -i "s/\/${mainfile}/g"
|
||||
find -type f | xargs sed -i "s/\/${course}/g"
|
||||
find -type f | xargs sed -i "s/\/${stylefile}/g"
|
||||
find -type f | xargs sed -i "s/\/${repo}/g"
|
||||
find -type f | xargs sed -i "s/\/${term}/g"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
\documentclass[10pt,ngerman,a4paper, fancyfoot, git]{mkessler-script}
|
||||
|
||||
\course{$course}
|
||||
\course{}
|
||||
\lecturer{}
|
||||
\author{}
|
||||
|
||||
\usepackage{$stylefile}
|
||||
\usepackage{}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
\ProvidesPackage{$stylefile}[2022/02/10 - Style file for notes of $course]
|
||||
\ProvidesPackage{}[2022/02/10 - Style file for notes of ]
|
||||
|
|
Loading…
Reference in a new issue