From 0c92b469e6f93163470aac8e688deb02820fb551 Mon Sep 17 00:00:00 2001 From: KingOfDog Date: Tue, 17 Jan 2023 15:49:24 +0100 Subject: [PATCH] Improve setup and build process, don't require new line at the end of each md file --- build.sh | 4 ++-- setup.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 build.sh diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 index bccfe66..4ae2af0 --- a/build.sh +++ b/build.sh @@ -43,7 +43,7 @@ function run_pandoc { rm chapter/out.tex fi - cat chapter/*.md > chapter/out.md + for f in chapter/*.md; do (cat "${f}"; echo) >> chapter/out.md; done pandoc --lua-filter templates/germanquotes.lua --citeproc --filter pandoc-crossref \ -M cref=true --top-level-division=chapter \ --bibliography library/library.bib --biblatex \ @@ -91,4 +91,4 @@ case $1 in *) echo $"Usage: $0 {clean|pandoc|latex}" exit 1 -esac \ No newline at end of file +esac diff --git a/setup.sh b/setup.sh index 2ef7e03..64a886f 100755 --- a/setup.sh +++ b/setup.sh @@ -16,6 +16,7 @@ if [ $1 == "markdown" ] then #cp templates/markdown.gitlab-ci.yml ./.gitlab-ci.yml cp templates/markdown/.drone.yml ./.drone.yml + mkdir -p .github/workflow cp templates/markdown/github-workflow.yml ./.github/workflows/latex.yml #cp templates/markdown/azure-pipelines.yml ./azure-pipelines.yml cp templates/markdown/tasks.json ./.vscode/tasks.json