From 0d0db4d4271425017c2dc7747c751b1fa07a7288 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 17 Jun 2015 13:36:57 +0200 Subject: [PATCH] Fix #91: add `ctan` target to Makefile Detecting the version number is currently not possible, thus the archive is named "mtheme-.zip". --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1fcfb4d..42337e8 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,8 @@ MANUAL_SRC = mtheme.dtx MANUAL_PDF = mtheme.pdf TEXC := latexmk -xelatex -output-directory=$(TEMP_DIR) +CTAN_CONTENT = $(INS) $(DTX) $(MANUAL_PDF) + DOCKER_IMAGE = latex-image DOCKER_CONTAINER = latex-container @@ -39,8 +41,11 @@ manual: $(MANUAL_PDF) demo: $(DEMO_PDF) -ctan: - @echo Not yet implemented. +ctan: $(CTAN_CONTENT) + @mkdir -p mtheme + @cp $(CTAN_CONTENT) mtheme/ + @zip -q mtheme-$(shell grep -A1 ProvidesPackage < beamerthemem.dtx | grep -P -o '\d\.\d\.\d').zip mtheme/* + @rm -rf mtheme clean: @git clean -xfd