Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151289048
D51862.id160190.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
871 B
Referenced Files
None
Subscribers
None
D51862.id160190.diff
View Options
diff --git a/share/mk/bsd.man.mk b/share/mk/bsd.man.mk
--- a/share/mk/bsd.man.mk
+++ b/share/mk/bsd.man.mk
@@ -288,7 +288,7 @@
.endif
.endfor
-manlint:
+manlint: checkmanlinks
.if defined(${__group}) && !empty(${__group})
.for __page in ${${__group}}
manlint: ${__page:S/:/\:/g}lint
@@ -301,4 +301,19 @@
.endfor
.endif
+checkmanlinks:
+.if defined(${__group}LINKS)
+checkmanlinks: checkmanlinks-${__group}
+checkmanlinks-${__group}:
+.for __page __link in ${${__group}LINKS}
+checkmanlinks-${__group}: checkmanlinks-${__group}-${__link}
+checkmanlinks-${__group}-${__link}: ${__page}
+ @if ! egrep -q "^\.Nm ${__link:R}\>" ${.ALLSRC}; then \
+ echo "${__page} does not mention" \
+ "${__link:R}(${__link:E})"; \
+ exit 1; \
+ fi >&2
+.endfor # __page __link in ${${__group}LINKS}
+.endif # defined(${__group}LINKS)
+
.endfor # __group in ${MANGROUPS}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 8:45 AM (14 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31089533
Default Alt Text
D51862.id160190.diff (871 B)
Attached To
Mode
D51862: bsd.man.mk: Add checkmanlinks target
Attached
Detach File
Event Timeline
Log In to Comment