Files
cozystack/packages/system/Makefile
2024-04-18 09:00:22 +02:00

14 lines
441 B
Makefile

OUT=../../_out/repos/system
VERSION := 0.3.0
gen: fix-chartnames
repo: fix-chartnames
rm -rf "$(OUT)"
mkdir -p "$(OUT)"
helm package -d "$(OUT)" $$(find . -mindepth 2 -maxdepth 2 -name Chart.yaml | awk 'sub("/Chart.yaml", "")')
cd "$(OUT)" && helm repo index .
fix-chartnames:
find . -name Chart.yaml -maxdepth 2 | awk -F/ '{print $$2}' | while read i; do printf "name: cozy-%s\nversion: $(VERSION)\n" "$$i" > "$$i/Chart.yaml"; done