Hi… I am well aware that this diff view is very suboptimal. It will be fixed when the refactored server comes along!
Generate VERSION from git describe
/forge
/templates.ha
/.templates.ha /.version.ha
forge: templates.ha *.ha
forge: .version.ha .templates.ha *.ha
hare build $(HAREFLAGS) -o $@ .
templates.ha: templates/*.htmpl
.templates.ha: templates/*.htmpl
htmplgen -o $@ $^
.version.ha: printf 'def VERSION="%s";\n' $(shell git describe --tags --always --dirty) > $@ .PHONY: version.ha
let global: struct {
title: str,
version: str,
ssh_pubkey: str,
ssh_fp: str,
} = struct {
title: str = "Test Forge",
version: str = "v0.0.0",
version: str = VERSION,
ssh_pubkey: str = "pubkey", ssh_fp: str = "fp", };