]> git.lizzy.rs Git - rust.git/commitdiff
mk: Fix the regexp of SHOW_DOCS
authorVirgile Andreani <virgile.andreani@anbuco.fr>
Tue, 18 Feb 2014 10:53:23 +0000 (11:53 +0100)
committerVirgile Andreani <virgile.andreani@anbuco.fr>
Tue, 18 Feb 2014 10:53:23 +0000 (11:53 +0100)
The tag marks were missing, and `make tips` didn't work.

Makefile.in
mk/main.mk

index 5e6e8f310c7814e1a5078163d6299a80e5f87802..fb8b1ce9371c98a2ca22a0f0ad0f09bc286ca42e 100644 (file)
 #
 # </tips>
 #
-# <nittygritty>
+# <nitty-gritty>
 #
 # # The Rust Build System
 #
 #
 # Admittedly this is a little convoluted.
 #
-# </nittygritty>
+# </nitty-gritty>
 #
 
 ######################################################################
index 53ba07e65cbdd6ede725175eb9a0b6ec50d6262b..2c7c7c7cecd6d278248c64f27f11b527e3e81ab5 100644 (file)
@@ -446,13 +446,13 @@ all: $(ALL_TARGET_RULES) $(GENERATED) docs
 # $(1) is the name of the doc <section> in Makefile.in
 # pick everything between tags | remove first line | remove last line
 # | remove extra (?) line | strip leading `#` from lines
-SHOW_DOCS = $(Q)awk '/$(1)/,/<\/$(1)>/' $(S)/Makefile.in | sed '1d' | sed '$$d' | sed 's/^\# \?//'
+SHOW_DOCS = $(Q)awk '/<$(1)>/,/<\/$(1)>/' $(S)/Makefile.in | sed '1d' | sed '$$d' | sed 's/^\# \?//'
 
 help:
        $(call SHOW_DOCS,help)
 
-hot-tips:
-       $(call SHOW_DOCS,hottips)
+tips:
+       $(call SHOW_DOCS,tips)
 
 nitty-gritty:
-       $(call SHOW_DOCS,nittygritty)
+       $(call SHOW_DOCS,nitty-gritty)