mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
Merge pull request #19532 from dfr/freebsd-build
Makefile: work around the lack of 'man -l' on FreeBSD
This commit is contained in:
4
Makefile
4
Makefile
@ -69,9 +69,11 @@ PRE_COMMIT = $(shell command -v bin/venv/bin/pre-commit ~/.local/bin/pre-commit
|
|||||||
ifeq ($(shell uname -s),FreeBSD)
|
ifeq ($(shell uname -s),FreeBSD)
|
||||||
SED=gsed
|
SED=gsed
|
||||||
GREP=ggrep
|
GREP=ggrep
|
||||||
|
MAN_L= mandoc
|
||||||
else
|
else
|
||||||
SED=sed
|
SED=sed
|
||||||
GREP=grep
|
GREP=grep
|
||||||
|
MAN_L= man -l
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# This isn't what we actually build; it's a superset, used for target
|
# This isn't what we actually build; it's a superset, used for target
|
||||||
@ -503,7 +505,7 @@ $(MANPAGES): %: %.md .install.md2man docdir
|
|||||||
@if grep 'included file options/' docs/build/man/*; then \
|
@if grep 'included file options/' docs/build/man/*; then \
|
||||||
echo "FATAL: man pages must not contain ^^^^"; exit 1; \
|
echo "FATAL: man pages must not contain ^^^^"; exit 1; \
|
||||||
fi
|
fi
|
||||||
@if man -l $(subst source/markdown,build/man,$@) | grep -Pazoq '│\s+│\n\s+├─+┼─+┤\n\s+│\s+│'; then \
|
@if $(MAN_L) $(subst source/markdown,build/man,$@) | $(GREP) -Pazoq '│\s+│\n\s+├─+┼─+┤\n\s+│\s+│'; then \
|
||||||
echo "FATAL: $< has a too-long table column; use 'man -l $(subst source/markdown,build/man,$@)' and look for empty table cells."; exit 1; \
|
echo "FATAL: $< has a too-long table column; use 'man -l $(subst source/markdown,build/man,$@)' and look for empty table cells."; exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user