add lint to makefile

This commit is contained in:
Brevven 2021-03-12 00:17:39 -08:00
parent 171d9bbd40
commit 504939f151

View file

@ -6,7 +6,7 @@
# install` from dev/<modname> to install the mod as a zip file. That zip file # install` from dev/<modname> to install the mod as a zip file. That zip file
# should also be ready to upload to the mod portal # should also be ready to upload to the mod portal
.PHONY: copy install .PHONY: copy lint-changelog install
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)
@ -16,9 +16,15 @@ copy:
mkdir -p ../$(v) mkdir -p ../$(v)
cp -rf * ../$(v) cp -rf * ../$(v)
rm -f ../$(v).zip 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: lint-changelog copy
install: copy
cp -f ../$(v).zip ../../mods/ 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