home: hub: minipeg

Download patch

ref: f0adf4345753abac945bc9b57b4958c70dce766e
parent: e61b61635bdab84e2db5532907a078f221da82a1
author: Andrew Chambers <ac@acha.ninja>
date: Sun Apr 10 19:21:07 CDT 2022

Perform bootstrap diff without the version string.

--- a/Makefile
+++ b/Makefile
@@ -33,15 +33,18 @@
 www/index.html: .FORCE
 	sh ./www/index.html.sh > $@
 
-# Check the bootstrap minipeg.c matches the built minipeg-new.c.
-check-self-host: minipeg-new.c .FORCE
-	diff -u minipeg.c minipeg-new.c
+%.c.noversion : %.c
+	grep -v -e '#define MINIPEG_VERSION' $< > $@
 
+# Check the bootstrap minipeg.c matches the built minipeg-new.c (without version info).
+check-self-host: minipeg.c.noversion minipeg-new.c.noversion .FORCE
+	diff -u minipeg.c.noversion minipeg-new.c.noversion
+
 check: minipeg check-self-host .FORCE
 	$(SHELL) -ec '(cd examples;  $(MAKE))'
 
 clean : .FORCE
-	rm -f minipeg bootstrap-minipeg $(GENSRC) $(OBJ)
+	rm -f minipeg bootstrap-minipeg rm *.c.noversion $(GENSRC) $(OBJ)
 	$(SHELL) -ec '(cd examples;  $(MAKE) clean)'
 
 .FORCE :