Skip to content

Commit

Permalink
chore(build): Add target to build CTAN release upload package
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Oct 10, 2020
1 parent f54b8ee commit 2e1a725
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,15 @@ install-dist: install-dist-$(PROJECT)
install-dist-$(PROJECT): | preview.svg
install -Dm644 -t "$(DISTDIR)/" preview.svg AUTHORS.txt CONTRIBUTING.md CONTRIBUTORS.txt FONTLOG.txt
install -Dm644 -t "$(DISTDIR)/$(DOCSDIR)" $(DOCSDIR)/*.pdf

CTAN_NAME = libertinus-fonts

.PHONY: dist-ctan
dist-ctan: install-dist
mktemp ctan-XXXXXX.zip | read TMP
bsdtar \
-s ',$(DISTDIR),$(CTAN_NAME),' \
-s ',static/OTF,otf,' \
-acf $${TMP} $(DISTDIR)
bsdtar -acf $(CTAN_NAME)-$(GitVersion).tar.gz --exclude 'static' @$${TMP}
rm $${TMP}

0 comments on commit 2e1a725

Please sign in to comment.