From f85d557916e0cfdde32cd26752e7f6cb4ff30452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Mekina?= Date: Tue, 7 Oct 2025 13:04:50 +0200 Subject: [PATCH] Switched to upstream's build system in the build script --- build.sh | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index 989ac00..2cb69df 100755 --- a/build.sh +++ b/build.sh @@ -14,18 +14,25 @@ curl "https://stag.tul.cz/StagPortletsJSR168/ProhlizeniPrint?stateClass=cz.zcu.s }] }] | from_entries' >> programmes.js -if [ ! -d template_upstream ]; then - git clone git@gordon.zumepro.cz:tul/tultemplate2 template_upstream +TEMPLATE=template_upstream + +if [ ! -d $TEMPLATE ]; then + git clone git@gordon.zumepro.cz:tul/tultemplate2 $TEMPLATE else - cd template_upstream + cd $TEMPLATE git pull cd .. fi +TEMPLATE_PACKDIR=$TEMPLATE/pack/bundle + +rm -r $TEMPLATE_PACKDIR +cd $TEMPLATE +make bundle +cd .. + cp -r \ - template_upstream/template \ - template_upstream/citations.bib \ - template_upstream/Makefile \ + $TEMPLATE_PACKDIR/. \ assignment.pdf \ archive