From 51251c0bae8e8d1ea9e83b843a2d59aa7f2e1d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Hutter?= Date: Wed, 17 Apr 2024 23:03:28 +0200 Subject: [PATCH] Changed filenames to have no underscores. Updated makefile to wrtie a warning if there are underscores in filenames which are used during the build process. Closes #36 --- Makefile | 12 ++++++++++++ ...ng_schueler1.md => 31-ausarbeitung-schueler1.md} | 0 ...ng_schueler2.md => 32-ausarbeitung-schueler2.md} | 0 ...xlsx => HTLLEDiplomarbeitsidee-NAME1-NAME2.xlsx} | Bin ...entation.pptx => VorlageDA-Präsentation-NAME.pptx} | Bin ...agePoster(A0)_2016.ppt => VorlagePoster(A0).ppt} | Bin 6 files changed, 12 insertions(+) rename example/{31-ausarbeitung_schueler1.md => 31-ausarbeitung-schueler1.md} (100%) rename example/{32-ausarbeitung_schueler2.md => 32-ausarbeitung-schueler2.md} (100%) rename example/doc/{HTLLEDiplomarbeitsidee_NAME1_NAME2.xlsx => HTLLEDiplomarbeitsidee-NAME1-NAME2.xlsx} (100%) rename example/doc/{VorlageDA-Präsentation2020_Erstpräsentation.pptx => VorlageDA-Präsentation-NAME.pptx} (100%) rename example/doc/{VorlagePoster(A0)_2016.ppt => VorlagePoster(A0).ppt} (100%) diff --git a/Makefile b/Makefile index b742818..425e843 100644 --- a/Makefile +++ b/Makefile @@ -47,6 +47,18 @@ build-stage: @echo "Merging style files into the staging directory" @rsync -av $(STYLEDIR)/ $(STAGINGDIR)/style --quiet + # Prüfen auf Dateien mit Unterstrichen im Namen + @echo "Checking for files containing underscores in $(STAGINGDIR)..." + @files=$$(find $(STAGINGDIR) -type f -name '*_*'); \ + if [ -n "$$files" ]; then \ + echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \ + echo "WARNING: Found files with underscores:"; \ + echo " -> $$files"; \ + echo "These files are very likely to cause issues during the build process"; \ + echo "Remove or rename them to build the thesis safely"; \ + echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \ + fi + compile-output: # Bauen der Arbeit aus dem staging verzeichnis heraus @echo "Compiling the thesis into: $(OUTPUTFILE)" diff --git a/example/31-ausarbeitung_schueler1.md b/example/31-ausarbeitung-schueler1.md similarity index 100% rename from example/31-ausarbeitung_schueler1.md rename to example/31-ausarbeitung-schueler1.md diff --git a/example/32-ausarbeitung_schueler2.md b/example/32-ausarbeitung-schueler2.md similarity index 100% rename from example/32-ausarbeitung_schueler2.md rename to example/32-ausarbeitung-schueler2.md diff --git a/example/doc/HTLLEDiplomarbeitsidee_NAME1_NAME2.xlsx b/example/doc/HTLLEDiplomarbeitsidee-NAME1-NAME2.xlsx similarity index 100% rename from example/doc/HTLLEDiplomarbeitsidee_NAME1_NAME2.xlsx rename to example/doc/HTLLEDiplomarbeitsidee-NAME1-NAME2.xlsx diff --git a/example/doc/VorlageDA-Präsentation2020_Erstpräsentation.pptx b/example/doc/VorlageDA-Präsentation-NAME.pptx similarity index 100% rename from example/doc/VorlageDA-Präsentation2020_Erstpräsentation.pptx rename to example/doc/VorlageDA-Präsentation-NAME.pptx diff --git a/example/doc/VorlagePoster(A0)_2016.ppt b/example/doc/VorlagePoster(A0).ppt similarity index 100% rename from example/doc/VorlagePoster(A0)_2016.ppt rename to example/doc/VorlagePoster(A0).ppt