X-Git-Url: https://git.ladys.computer/OldStandard/blobdiff_plain/fb0d26a824957897937a33033f1d321251ae03f6..dbc18e9d2f11b44840018f05fb413c7880967b5a:/makefile?ds=sidebyside diff --git a/makefile b/makefile index 8497892..b03424f 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,5 @@ -pkg=oldstandard-t +pkg := oldstandard-t +ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]?\.[0-9]?') TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') HOMEDIR := $$HOME @@ -14,7 +15,7 @@ package: clean doc mkdir $(pkg) cp *.{txt,md,tex,pdf} $(pkg) cp otf/*.otf $(pkg) - tar czf $(pkg).tar.gz $(pkg) + tar czf $(pkg)-$(ver).tar.gz $(pkg) clean: git clean -df