docs: use the make wildcard function instead of find
PATCH 1/1 docs: use the make wildcard function instead of find
The regexp used with find in order to list the man pages doesn't work with FreeBSD find, so use a wildcard instead. No functional change.
Signed-off-by Roger Pau Monné <[email protected]>
---
Cc: Ian Jackson <[email protected]>
Cc: Wei Liu <[email protected]>
--- docs/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
docs/Makefile +4 -4
@@ -8,10 +8,10 @@ DATE := $(shell date +%Y-%m-%d) DOC_ARCHES := arm x86_32 x86_64 # Documentation sources to build -MAN1SRC-y := $(sort $(shell find man/ -regex '.*\.\(pod\|markdown\)\.1' -print)) -MAN5SRC-y := $(sort $(shell find man/ -regex '.*\.\(pod\|markdown\)\.5' -print)) -MAN7SRC-y := $(sort $(shell find man/ -regex '.*\.\(pod\|markdown\)\.7' -print)) -MAN8SRC-y := $(sort $(shell find man/ -regex '.*\.\(pod\|markdown\)\.8' -print)) +MAN1SRC-y := $(sort $(wildcard man/*.pod.1 man/*.markdown.1)) +MAN5SRC-y := $(sort $(wildcard man/*.pod.5 man/*.markdown.5)) +MAN7SRC-y := $(sort $(wildcard man/*.pod.7 man/*.markdown.7)) +MAN8SRC-y := $(sort $(wildcard man/*.pod.8 man/*.markdown.8)) MARKDOWNSRC-y := $(sort $(shell find misc -name '*.markdown' -print))
Signature · 7 lines
2.18.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Roger Pau Monne
The regexp used with find in order to list the man pages doesn't work with FreeBSD find, so use a wildcard instead. No functional change.
Signed-off-by Roger Pau Monné <[email protected]>
Acked-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel