Skip to contentSkip to conversation

maintainer-tools: extract the man page from the dim script

PATCH New Jani Nikula 1 participant 1 message Oct 19, 2015 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 maintainer-tools: extract the man page from the dim script

Add some magic to find the man page on dim help, and display the man page like before. Add make target to create dim.html version of the man page.

---
 Makefile |   9 +-
 dim      | 324 +++------------------------------------------------------------
 dim.rst  | 309 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 327 insertions(+), 315 deletions(-)
 create mode 100644 dim.rst
Makefile +7 -2
index d95519a00f16..7c18885e24fa 100644
@@ -4,17 +4,22 @@
 # the wavedrom json, copy-pasting to and from http://wavedrom.com/editor.html is
 # handy as it shows the result live.
 
-all: drm-intel.html
+all: drm-intel.html dim.html
 
 %.svg: %.dot
 	dot -T svg -o $@ $<
 
+%.html: %.rst
+	rst2html $< > $@
+
 # the sed bit here is a hack to make wavedrom process the timeline
 drm-intel.html: drm-intel.rst drm-intel-flow.svg drm-intel-timeline.rst drm-intel-timeline.json
 	rst2html $< > $@
 	sed -i 's/<body/<body onload="WaveDrom.ProcessAll()"/' $@
 
+dim.html: dim.rst
+
 clean:
-	rm -f drm-intel.html drm-intel-flow.svg
+	rm -f drm-intel.html drm-intel-flow.svg dim.html
 
 .PHONY: all clean
dim +11 -313

336 lines not on this page · raw message

dim.rst new file +309 -0

309 lines not on this page · raw message

Signature · 6 lines
2.1.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx