]> Lady’s Gitweb - OldStandard/blobdiff - makefile
not yet 2.7, acutecomb needs to be corrected and oldstyle numerals are missing in...
[OldStandard] / makefile
index 5c34fdfc43bca75f8d799d360ef87e0baa22a159..bb2fe19b1192310aa78e969283276de6c8cb4eeb 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,5 +1,8 @@
 pkg := oldstandard
-ver  := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]{1,}\.[0-9]{1,}[a-z]{,1}')
+SHELL = /usr/local/bin/bash
+PWD   = $(shell pwd)
+#ver  := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]{1,}\.[0-9]{1,}[a-z]{,1}')
+ver := $(shell grep '\\edef\\pkgver' oldstandard.tex | egrep -o '[0-9]{1,}\.[0-9]{1,}\-?[a-z]?')
 TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME')
 HOMEDIR := $$HOME
 LOCALFONTDIR := $(HOMEDIR)/.local/share/fonts
@@ -25,21 +28,31 @@ local:
        @echo "Installing latest OldStandard .otf files in $(LOCALFONTDIR)..."
        cp otf/OldStandard-*.otf $(LOCALFONTDIR)/
        luaotfload-tool --update
+       @echo "Installing .fontspec files..."
+       if [ ! -d "$(TEXMFDIR)/tex/latex/fontspec" ]; then \
+       mkdir -p $(TEXMFDIR)/tex/latex/fontspec; \
+       fi
+       cp fontspec/OldStandard.fontspec $(TEXMFDIR)/tex/latex/fontspec
        @echo "Done."
 
 package: doc
        mkdir $(pkg)-$(ver)
        cp *.{txt,md,lua,tex,pdf} $(pkg)-$(ver)
        cp otf/*.otf $(pkg)-$(ver)
+       cp fontspec/*.fontspec $(pkg)-$(ver)
        tar czf $(pkg)-$(ver).tar.gz $(pkg)-$(ver)
        @echo "$(pkg)-$(ver).tar.gz has been created."
 
+hal: clean
+       zip -Drq $(PWD)/$(pkg)-$(ver).zip *
+
 clean:
        @echo "Removing OldStandard .otf files from $(LOCALFONTDIR)..."
        rm -f $(LOCALFONTDIR)/OldStandard-*.otf
        luaotfload-tool --update
+       @echo "Removing .fontspec files from local texmf dir..."
+       rm -f $(TEXMFDIR)/tex/latex/fontspec/OldStandard.fontspec
        git clean -df
-       pandoc README.md -o about.html
        @echo "Done."
 
 .PHONY: doc all local package clean
This page took 0.080576 seconds and 4 git commands to generate.