Skip to content

Commit ece12d8

Browse files
committed
mk: Fix the regexp of SHOW_DOCS
The tag marks were missing, and `make tips` didn't work.
1 parent b0ce960 commit ece12d8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
#
104104
# </tips>
105105
#
106-
# <nittygritty>
106+
# <nitty-gritty>
107107
#
108108
# # The Rust Build System
109109
#
@@ -157,7 +157,7 @@
157157
#
158158
# Admittedly this is a little convoluted.
159159
#
160-
# </nittygritty>
160+
# </nitty-gritty>
161161
#
162162

163163
######################################################################

mk/main.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,13 +446,13 @@ all: $(ALL_TARGET_RULES) $(GENERATED) docs
446446
# $(1) is the name of the doc <section> in Makefile.in
447447
# pick everything between tags | remove first line | remove last line
448448
# | remove extra (?) line | strip leading `#` from lines
449-
SHOW_DOCS = $(Q)awk '/$(1)/,/<\/$(1)>/' $(S)/Makefile.in | sed '1d' | sed '$$d' | sed 's/^\# \?//'
449+
SHOW_DOCS = $(Q)awk '/<$(1)>/,/<\/$(1)>/' $(S)/Makefile.in | sed '1d' | sed '$$d' | sed 's/^\# \?//'
450450

451451
help:
452452
$(call SHOW_DOCS,help)
453453

454-
hot-tips:
455-
$(call SHOW_DOCS,hottips)
454+
tips:
455+
$(call SHOW_DOCS,tips)
456456

457457
nitty-gritty:
458-
$(call SHOW_DOCS,nittygritty)
458+
$(call SHOW_DOCS,nitty-gritty)

0 commit comments

Comments
 (0)