Commit: afc93684d71ac781657c87161528edeac1a415a1 Parent: 9caa78e8c1f33005888458838c38fc60d705d236 Author: Ren Tatsumoto Date: Sun, 18 Oct 2020 01:31:23 +0300 include readme in release Diffstat:
| M | .github/RELEASE/Makefile | | | 27 | ++++++++++++++++++++++----- |
1 file changed, 22 insertions(+), 5 deletions(-)
diff --git a/.github/RELEASE/Makefile b/.github/RELEASE/Makefile @@ -1,14 +1,31 @@ PROJECT = mpvacious -VERSION = v0.2 +VERSION = v0.3 +MD2HTML = md2html --github --full-html +ZIPNAME = $(PROJECT)_$(VERSION).zip +OBJECTS = windows linux LICENSE + +LINUXBRANCH = remotes/origin/master +WINDOWSBRANCH = remotes/origin/windows .PHONY: clean all windows linux -all: linux windows + +all: $(ZIPNAME) + +$(ZIPNAME): $(OBJECTS) + zip -r $(ZIPNAME) -- $^ linux: - git show "remotes/origin/master:subs2srs.lua" > $(PROJECT)_$@_$(VERSION).lua + mkdir -p -- ./$@ + git show "$(LINUXBRANCH):subs2srs.lua" > ./$@/$(PROJECT)_$@_$(VERSION).lua + git show "$(LINUXBRANCH):README.md" | $(MD2HTML) -o ./$@/readme_$@.html windows: - git show "remotes/origin/windows:subs2srs.lua" > $(PROJECT)_$@_$(VERSION).lua + mkdir -p -- ./$@ + git show "$(WINDOWSBRANCH):subs2srs.lua" > ./$@/$(PROJECT)_$@_$(VERSION).lua + git show "$(WINDOWSBRANCH):README.md" | $(MD2HTML) -o ./$@/readme_$@.html + +LICENSE: + git show "master:$@" > $@ clean: - rm -v -- ./$(PROJECT)_*.lua + rm -rf -- $(OBJECTS) ./*.zip