From efca9e27a45b80f7475f6da1eedceb849613bf0b Mon Sep 17 00:00:00 2001 From: Brevven Date: Sun, 25 Jul 2021 00:47:50 -0700 Subject: [PATCH] link --- Makefile | 13 ++++++++++--- data-util.lua | 2 ++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5d2a96c..183a338 100644 --- a/Makefile +++ b/Makefile @@ -8,20 +8,27 @@ .PHONY: copy lint-changelog install +libdir = "../bzlib" +libfiles = $(shell ls $(libdir)/*.lua | grep -o '[^/]*.lua') pwd = $(shell pwd) 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) mkdir -p ../$(v) cp -rf * ../$(v) rm -f ../$(v).zip - cd ..; zip -9 -r -y $(v).zip $(v) -x "*.xcf" -x "*.git*" -x "*.bak" -x "*.blend*" + cd ..; zip -9 -r -y $(v).zip $(v) -x "*.xcf" -x "*.git*" -x "*.bak" install: lint-changelog copy cp -f ../$(v).zip ../../mods/ - lint-changelog: copy python3 ../da-changelog-tools_0.0.14/changelog-checker.py --changelog ../$(v).zip diff --git a/data-util.lua b/data-util.lua index ebd8c84..36b8f84 100644 --- a/data-util.lua +++ b/data-util.lua @@ -1,3 +1,5 @@ +-- WARNING - this file will be overwritten, edit bzlib/data-util.lua + local me = require("me") local util = {}