Thu, 23 Mar 2023 15:12:30 +0000
Serialize XML in a consistent order by default
This overrides all XML serialization to emit attributes in an ordered form, so
the XML will match across multiple runs. This can be useful for comparing
different runs, or even two stanzas printed in the same run (e.g. if there is
a mismatch).
include config.unix ifndef SQUISH $(error Please run ./configure first) endif SOURCE_FILES=$(shell $(SQUISH) --list-files) MISSING_FILES=$(shell $(SQUISH) --list-missing-files) SQUISH_PARAMS=--with-verse --with-server OUTPUT=build/scansion BIN_DIR=$(PREFIX)/bin all: $(OUTPUT) $(OUTPUT): build squishy $(SOURCE_FILES) $(SQUISH) $(SQUISH_PARAMS) --output=$(OUTPUT) build: mkdir build install: $(OUTPUT) install -t $(BIN_DIR) -m 755 $^ clean: rm $(OUTPUT) test: busted docker: docker build -t scansion . .PHONY: all clean install docker test clean