inputs
This commit is contained in:
parent
ceb3de94f0
commit
4a70b86591
1 changed files with 12 additions and 4 deletions
16
build.sh
16
build.sh
|
@ -3,14 +3,18 @@ FILE="$(realpath "${BASH_SOURCE[0]}")"
|
||||||
ROOT="$(dirname "${FILE}")"
|
ROOT="$(dirname "${FILE}")"
|
||||||
|
|
||||||
INPUT="${ROOT}/in"
|
INPUT="${ROOT}/in"
|
||||||
|
INPUTS="${ROOT}/in.txt"
|
||||||
OUTPUT="${ROOT}/out"
|
OUTPUT="${ROOT}/out"
|
||||||
|
|
||||||
|
function main {
|
||||||
|
local file
|
||||||
|
local files=()
|
||||||
|
|
||||||
rm --force --recursive "${OUTPUT}"
|
rm --force --recursive "${OUTPUT}"
|
||||||
mkdir --parents "${OUTPUT}"
|
mkdir --parents "${OUTPUT}"
|
||||||
|
|
||||||
FILES=()
|
for file in $(cat "${INPUTS}") ; do
|
||||||
for f in $(cat "${ROOT}/in.txt") ; do
|
files+=("${INPUT}/${f}.md")
|
||||||
FILES+=("${INPUT}/${f}.md")
|
|
||||||
done
|
done
|
||||||
|
|
||||||
pandoc \
|
pandoc \
|
||||||
|
@ -27,4 +31,8 @@ pandoc \
|
||||||
--variable revealjs-url='/sw/revealjs/up' \
|
--variable revealjs-url='/sw/revealjs/up' \
|
||||||
--variable slideNumber \
|
--variable slideNumber \
|
||||||
\
|
\
|
||||||
"${FILES[@]}"
|
"${files[@]}"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
main
|
||||||
|
|
Loading…
Reference in a new issue