]> Sergey Matveev's repositories - public-inbox.git/commitdiff
doc: check-NEWS.atom fails gracefully on FreeBSD make(1)
authorEric Wong <e@80x24.org>
Tue, 15 Oct 2019 21:12:27 +0000 (21:12 +0000)
committerEric Wong <e@80x24.org>
Wed, 16 Oct 2019 00:27:02 +0000 (00:27 +0000)
We should also note that the package "xmlstarlet" on FreeBSD
installs a command "xml" (but not "xmlstarlet") on FreeBSD.

Documentation/include.mk

index 9fd85210903a18b9e71878449fb4d1d33b37b899..45e085738ea6c01708a628f796d805e5c3a4f460 100644 (file)
@@ -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)