From fc3db6df54d80cdad197cb6cdbf9bc759a281965 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sun, 25 Jul 2021 00:38:44 -0700 Subject: [PATCH] link --- Makefile | 11 +++++++++-- data-util.lua | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1e95244..183a338 100644 --- a/Makefile +++ b/Makefile @@ -8,10 +8,18 @@ .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) @@ -21,7 +29,6 @@ copy: 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 = {}