From 504939f1513a2ae4a5fc0b84e650f8a17acd839e Mon Sep 17 00:00:00 2001 From: Brevven Date: Fri, 12 Mar 2021 00:17:39 -0800 Subject: [PATCH] add lint to makefile --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 2890957..1e95244 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # install` from dev/ to install the mod as a zip file. That zip file # should also be ready to upload to the mod portal -.PHONY: copy install +.PHONY: copy lint-changelog install pwd = $(shell pwd) v = $(shell basename "$(pwd)")_$(shell jq -r .version info.json) @@ -16,9 +16,15 @@ copy: 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 "*/old-files/*" + cd ..; zip -9 -r -y $(v).zip $(v) -x "*.xcf" -x "*.git*" -x "*.bak" - -install: 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 + +zorro: + python3 ../da-changelog-tools_0.0.14/changelog-checker.py --zorro --changelog ../$(v).zip +