Add !assert_built macro

Assert completed builds so that the Syndicate server can restart
daemons.
This commit is contained in:
Emery Hemingway 2023-05-06 15:52:18 +01:00
parent e3d8d36ba9
commit dd32c10a30
1 changed files with 3 additions and 0 deletions

View File

@ -20,3 +20,6 @@ NIM_FLAGS = --noNimblePath
!preserves_schema_nim = | $(BIN_DIR)/<preserves_schema_nim> |> ^o generate nim module %B^ $(BIN_DIR)/preserves_schema_nim %f |> %B.nim
!preserves_schemac = | $(BIN_DIR)/<schemac> |> ^o^ $(BIN_DIR)/schemac |>
SYNDICATE_CONFIG_DIR = $(TUP_CWD)/config
!assert_built = |> ^ <built "%b" …>^ echo "<built \"%b\" \"`b2sum -l 32 $f | { read sum rest ; echo $sum; }`\">" > %o |> $(SYNDICATE_CONFIG_DIR)/built/%b.pr