From 8666604e8cbfaa81bfddfbb6bc1109e30cd8f23f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Mekina?= Date: Thu, 9 Oct 2025 21:35:57 +0200 Subject: [PATCH] change bundling system to allow for different language example theses --- Makefile | 10 +++------- theses/{bp.typ => bp_cs.typ} | 0 theses/{dp.typ => dp_cs.typ} | 0 3 files changed, 3 insertions(+), 7 deletions(-) rename theses/{bp.typ => bp_cs.typ} (100%) rename theses/{dp.typ => dp_cs.typ} (100%) diff --git a/Makefile b/Makefile index df1defb..8c6891f 100644 --- a/Makefile +++ b/Makefile @@ -21,8 +21,8 @@ PACKDIR := pack/tultemplate2 BUNDLEDIR := pack/bundle TO_PACK := $(shell find template -type f) template/LICENSE -BUNDLE_TARGETS := $(TO_PACK:%=$(BUNDLEDIR)/%) $(BUNDLEDIR)/citations.bib $(BUNDLEDIR)/bp.typ \ - $(BUNDLEDIR)/dp.typ $(BUNDLEDIR)/Makefile +BUNDLE_TARGETS := $(TO_PACK:%=$(BUNDLEDIR)/%) $(BUNDLEDIR)/citations.bib $(BUNDLEDIR)/bp_cs.typ \ + $(BUNDLEDIR)/bp_en.typ $(BUNDLEDIR)/dp_cs.typ $(BUNDLEDIR)/Makefile PACK_TARGETS := $(TO_PACK:%=$(PACKDIR)/%) $(PACKDIR)/documentation.typ \ $(PACKDIR)/documentation.pdf $(PACKDIR)/citations.bib @@ -51,11 +51,7 @@ $(BUNDLEDIR)/citations.bib: citations.bib @mkdir -p $(@D) ln -f $< $@ -$(BUNDLEDIR)/bp.typ: theses/bp.typ - @mkdir -p $(@D) - awk 'BEGIN{RS=""; ORS="\n\n"} NR>2{print}' $< | sed 's/\.\.\/template\//template\//' > $@ - -$(BUNDLEDIR)/dp.typ: theses/dp.typ +$(BUNDLEDIR)/%.typ: theses/%.typ @mkdir -p $(@D) awk 'BEGIN{RS=""; ORS="\n\n"} NR>2{print}' $< | sed 's/\.\.\/template\//template\//' > $@ diff --git a/theses/bp.typ b/theses/bp_cs.typ similarity index 100% rename from theses/bp.typ rename to theses/bp_cs.typ diff --git a/theses/dp.typ b/theses/dp_cs.typ similarity index 100% rename from theses/dp.typ rename to theses/dp_cs.typ