diff options
author | Robert Alessi <alessi@robertalessi.net> | 2019-07-24 14:59:48 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2019-07-24 14:59:48 +0200 |
commit | 0a907a795f4339aa40a934bfd5bbb8658273c9cf (patch) | |
tree | abffce1fd630042e6cb1bb457a184e8b0e70e3ca /makefile | |
parent | dbb1ce8183ef875f252b7fceaf86c98a5e5bd84f (diff) | |
download | oldstandard-0a907a795f4339aa40a934bfd5bbb8658273c9cf.tar.gz |
use pkgver and pkgdate
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,5 @@ | |||
1 | pkg=oldstandard-t | 1 | pkg := oldstandard-t |
2 | ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]?\.[0-9]?') | ||
2 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') | 3 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') |
3 | HOMEDIR := $$HOME | 4 | HOMEDIR := $$HOME |
4 | 5 | ||
@@ -14,7 +15,7 @@ package: clean doc | |||
14 | mkdir $(pkg) | 15 | mkdir $(pkg) |
15 | cp *.{txt,md,tex,pdf} $(pkg) | 16 | cp *.{txt,md,tex,pdf} $(pkg) |
16 | cp otf/*.otf $(pkg) | 17 | cp otf/*.otf $(pkg) |
17 | tar czf $(pkg).tar.gz $(pkg) | 18 | tar czf $(pkg)-$(ver).tar.gz $(pkg) |
18 | 19 | ||
19 | clean: | 20 | clean: |
20 | git clean -df | 21 | git clean -df |