This commit is contained in:
Brevven 2021-07-25 00:38:44 -07:00
parent 882e39dc61
commit fc3db6df54
2 changed files with 11 additions and 2 deletions

View file

@ -8,10 +8,18 @@
.PHONY: copy lint-changelog install .PHONY: copy lint-changelog install
libdir = "../bzlib"
libfiles = $(shell ls $(libdir)/*.lua | grep -o '[^/]*.lua')
pwd = $(shell pwd) pwd = $(shell pwd)
v = $(shell basename "$(pwd)")_$(shell jq -r .version info.json) v = $(shell basename "$(pwd)")_$(shell jq -r .version info.json)
copy: link:
for f in $(libfiles) ; do \
echo "using $(libdir)/$$f" ;\
cp $(libdir)/$$f .; \
done;
copy: link
rm -rf ../$(v) rm -rf ../$(v)
mkdir -p ../$(v) mkdir -p ../$(v)
cp -rf * ../$(v) cp -rf * ../$(v)
@ -21,7 +29,6 @@ copy:
install: lint-changelog copy install: lint-changelog copy
cp -f ../$(v).zip ../../mods/ cp -f ../$(v).zip ../../mods/
lint-changelog: copy lint-changelog: copy
python3 ../da-changelog-tools_0.0.14/changelog-checker.py --changelog ../$(v).zip python3 ../da-changelog-tools_0.0.14/changelog-checker.py --changelog ../$(v).zip

View file

@ -1,3 +1,5 @@
-- WARNING - this file will be overwritten, edit bzlib/data-util.lua
local me = require("me") local me = require("me")
local util = {} local util = {}