diff --git a/.ci/build_document.sh b/.ci/build_document.sh index aa814ed..2869c17 100755 --- a/.ci/build_document.sh +++ b/.ci/build_document.sh @@ -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 diff --git a/.gitignore b/.gitignore index ebd1f36..6a4c40f 100644 --- a/.gitignore +++ b/.gitignore @@ -46,7 +46,7 @@ *.cnt ### main pdf file -$mainfile.pdf +.pdf ## build directory build/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e0789d7..62f3eac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,6 @@ pages: - public/ script: - echo "Deploying to pages" - - test -f public/$mainfile.pdf + - test -f public/.pdf only: - master diff --git a/README.md b/README.md index 03189f9..2997e07 100644 --- a/README.md +++ b/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]: / diff --git a/config b/config index a90eae0..0354fe9 100755 --- a/config +++ b/config @@ -1,3 +1,5 @@ +#!/bin/sh + mainfile='2021_Systemnahe_Programmierung' course='Systemnahe Programmierung' stylefile='sysprog' diff --git a/init.sh b/init.sh index df434b5..d5710cc 100755 --- a/init.sh +++ b/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" diff --git a/mainfile.tex b/mainfile.tex index 2de11f0..191d2ee 100644 --- a/mainfile.tex +++ b/mainfile.tex @@ -1,10 +1,10 @@ \documentclass[10pt,ngerman,a4paper, fancyfoot, git]{mkessler-script} -\course{$course} +\course{} \lecturer{} \author{} -\usepackage{$stylefile} +\usepackage{} \begin{document} diff --git a/stylefile.sty b/stylefile.sty index 8b8a33d..72c06aa 100644 --- a/stylefile.sty +++ b/stylefile.sty @@ -1 +1 @@ -\ProvidesPackage{$stylefile}[2022/02/10 - Style file for notes of $course] +\ProvidesPackage{}[2022/02/10 - Style file for notes of ]