From ee4c391c4b80eb76f5421809285f5d888648bdd8 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 4 Dec 2015 09:55:17 +0100 Subject: [PATCH] Create CTAN-compliant tarball A package prefix is required as well as a README and the document sources. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 3917425..33907a3 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ DEMO_PDF = demo/demo.pdf DOC_SRC = doc/metropolistheme.dtx DOC_PDF = doc/metropolistheme.pdf -CTAN_CONTENT = $(INS) $(PACKAGE_SRC) $(DOC_PDF) +CTAN_CONTENT = README.md $(INS) $(PACKAGE_SRC) $(DOC_SRC) $(DOC_PDF) DESTDIR ?= $(shell kpsewhich -var-value=TEXMFHOME) INSTALL_DIR = $(DESTDIR)/tex/latex/metropolis @@ -43,15 +43,15 @@ uninstall: @rm -f $(DOC_DIR)/$(notdir $(DOC_PDF)) @rmdir $(DOC_DIR) -ctan: $(CTAN_CONTENT) ctan-version - @zip mtheme-$(shell date "+%Y-%m-%d").zip $(CTAN_CONTENT) - clean-cache: @rm -f $(CACHE_DIR)/* clean-sty: @rm -f $(PACKAGE_STY) +ctan: $(CTAN_CONTENT) ctan-version + @tar --transform "s@\(.*\)@mtheme/\1@" -cf metropolis-$(shell date "+%Y-%m-%d").tar.gz $(CTAN_CONTENT) + ctan-version: @sed -i 's@\(ProvidesPackage.*\[\)[0-9/]*@\1$(shell date "+%Y/%m/%d")@' $(PACKAGE_SRC)