From 5081770c21893e2e0210a0dfa4bc9372f9428c86 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 15 Oct 2019 21:12:27 +0000 Subject: doc: check-NEWS.atom fails gracefully on FreeBSD make(1) We should also note that the package "xmlstarlet" on FreeBSD installs a command "xml" (but not "xmlstarlet") on FreeBSD. --- Documentation/include.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Documentation/include.mk') diff --git a/Documentation/include.mk b/Documentation/include.mk index 9fd85210..45e08573 100644 --- a/Documentation/include.mk +++ b/Documentation/include.mk @@ -8,7 +8,10 @@ all:: # Maybe it's not worth it to support non-GNU make, though... RSYNC = rsync RSYNC_DEST = public-inbox.org:/srv/public-inbox/ +AWK = awk MAN = man + +# this is "xml" on FreeBSD and maybe some other distros: XMLSTARLET = xmlstarlet # same as pod2text @@ -116,7 +119,8 @@ NEWS NEWS.atom NEWS.html : check :: NEWS check-NEWS.atom NEWS.html check-NEWS.atom: NEWS.atom - $(XMLSTARLET) val $<; e=$$?; test $$e -eq 0 || test $$e -eq 127 + $(XMLSTARLET) val NEWS.atom || \ + { e=$$?; test $$e -eq 0 || test $$e -eq 127; } Documentation/%.html: Documentation/%.txt $(txt2pre) -- cgit v1.2.3-24-ge0c7