summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-04-15 16:34:19 +0000
committerguenther <guenther@openbsd.org>2013-04-15 16:34:19 +0000
commit25b4942a8fc453c26163a5ff64f7bb987bf8b9e3 (patch)
treec196a68f9b3dd51513ae9359b831534fbc41cc26
parenttweak previous; (diff)
downloadwireguard-openbsd-25b4942a8fc453c26163a5ff64f7bb987bf8b9e3.tar.xz
wireguard-openbsd-25b4942a8fc453c26163a5ff64f7bb987bf8b9e3.zip
Tweak check rule to match change to the manpage formatting
-rw-r--r--usr.bin/which/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/which/Makefile b/usr.bin/which/Makefile
index 19c6be1a703..26b1262e66b 100644
--- a/usr.bin/which/Makefile
+++ b/usr.bin/which/Makefile
@@ -1,13 +1,14 @@
-# $OpenBSD: Makefile,v 1.7 2013/04/13 19:31:58 guenther Exp $
+# $OpenBSD: Makefile,v 1.8 2013/04/15 16:34:19 guenther Exp $
PROG= which
MAN= which.1 whereis.1
LINKS= ${BINDIR}/which ${BINDIR}/whereis
check_path_in_man:
+ @echo "Checking path expansion in whereis.1"; \
stdpath=`printf '#include <paths.h>\n_PATH_STDPATH\n' | \
${CPP} ${CPPFLAGS} - | \
- sed -n 's/^[ ]*"\(.*\)".*/.Pa \1 ./p'` ; \
+ sed -n 's/^[ ]*"\(.*\)".*/.D1 \1/p'` ; \
fgrep -xq "$$stdpath" ${.CURDIR}/whereis.1 && { touch $@; exit 0; }; \
echo "Update the expansion of _PATH_STDPATH in ${.CURDIR}/whereis.1"; \
exit 1