pkg := oldstandard
-SHELL = bash
-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
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