This commit is contained in:
Marc Beninca 2024-02-29 16:13:59 +01:00
parent ceb3de94f0
commit 4a70b86591
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -3,14 +3,18 @@ FILE="$(realpath "${BASH_SOURCE[0]}")"
ROOT="$(dirname "${FILE}")"
INPUT="${ROOT}/in"
INPUTS="${ROOT}/in.txt"
OUTPUT="${ROOT}/out"
function main {
local file
local files=()
rm --force --recursive "${OUTPUT}"
mkdir --parents "${OUTPUT}"
FILES=()
for f in $(cat "${ROOT}/in.txt") ; do
FILES+=("${INPUT}/${f}.md")
for file in $(cat "${INPUTS}") ; do
files+=("${INPUT}/${f}.md")
done
pandoc \
@ -27,4 +31,8 @@ pandoc \
--variable revealjs-url='/sw/revealjs/up' \
--variable slideNumber \
\
"${FILES[@]}"
"${files[@]}"
}
main