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}")"
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue