Create CTAN-compliant tarball
A package prefix is required as well as a README and the document sources.
This commit is contained in:
parent
73926f6e17
commit
ee4c391c4b
1 changed files with 4 additions and 4 deletions
8
Makefile
8
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue