2 # Make the "Wireshark User Guide" and "Wireshark Developer Guide"
4 # See the Readme.txt file for instructions.
9 # if you need to change this, don't forget to change it in catalog.xml too
11 # On suse 9.2, uncomment the following line:
12 DOCBOOKXSL="/usr/share/xml/docbook/stylesheet/nwalsh/1.65.1"
14 #DOCBOOKXSL="/usr/share/docbook-xsl"
16 ############### YOU SHOULDN'T HAVE TO EDIT ANYTHING BELOW THIS LINE! ################
18 # as wsug_chm will stop with an error, make sure it's the last in this dependency list
21 wsug: wsug_validate wsug_pdf_a4 wsug_html wsug_html_chunked wsug_chm
32 rm -rf wsug_html_chunked
35 rm -rf wsdg_html_chunked
39 # validate the content
41 @ echo --- VALIDATING XML ---
42 $(XMLLINT) --valid --noout user-guide.xml
44 # create html single page file
46 @ echo --- HTML SINGLE PAGE ---
48 mkdir -p wsug_html/wsug_graphics
49 mkdir -p wsug_html/wsug_graphics/toolbar
50 cp ./wsug_graphics/*.* wsug_html/wsug_graphics
51 cp ./wsug_graphics/toolbar/*.* wsug_html/wsug_graphics/toolbar
52 $(XSLTPROC) --nonet $(DOCBOOKXSL)/html/docbook.xsl user-guide.xml > wsug_html/user-guide.html
54 # create html chunked page files
56 @ echo --- HTML CHUNKED ---
57 mkdir -p wsug_html_chunked
58 mkdir -p wsug_html_chunked/wsug_graphics
59 mkdir -p wsug_html_chunked/wsug_graphics/toolbar
60 cp ./wsug_graphics/*.* wsug_html_chunked/wsug_graphics
61 cp ./wsug_graphics/toolbar/*.* wsug_html_chunked/wsug_graphics/toolbar
62 $(XSLTPROC) --stringparam base.dir wsug_html_chunked/ --stringparam use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path wsug_graphics/ --stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 --nonet $(DOCBOOKXSL)/html/chunk.xsl user-guide.xml
64 # create pdf file (through XSL-FO), portrait pages on US letter paper (the default)
65 # you will get lot's of errors, but that's ok
68 @ echo --- PDF US PAPER ---
69 $(XSLTPROC) --nonet custom_layer_pdf.xsl $(DOCBOOKXSL)/fo/docbook.xsl user-guide.xml > user-guide.fo
70 $(FOP) user-guide.fo user-guide.pdf
73 # create pdf file (through XSL-FO), portrait pages on A4 paper
74 # you will get lot's of errors, but that's ok
77 @ echo --- PDF A4 PAPER ---
78 $(XSLTPROC) --stringparam paper.type A4 --nonet custom_layer_pdf.xsl user-guide.xml > user-guide.fo
79 $(FOP) user-guide.fo user-guide.pdf
82 # create MS html help file (through html chunked pages)
85 @ echo --- MICROSOFT HTML HELP ---
87 mkdir -p wsug_chm/wsug_graphics
88 mkdir -p wsug_chm/wsug_graphics/toolbar
89 cp ./wsug_graphics/*.* wsug_chm/wsug_graphics
90 cp ./wsug_graphics/toolbar/*.* wsug_chm/wsug_graphics/toolbar
91 $(XSLTPROC) --stringparam base.dir wsug_chm/ --stringparam use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path wsug_graphics/ --stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 --nonet $(DOCBOOKXSL)/htmlhelp/htmlhelp.xsl user-guide.xml
93 mv htmlhelp.chm user-guide.chm
99 wsdg: wsdg_validate wsdg_html_chunked wsdg_pdf_a4 wsdg_html wsdg_chm
101 # validate the content
103 @ echo --- VALIDATING XML ---
104 $(XMLLINT) --valid --noout developer-guide.xml
106 # create html single page file
108 @ echo --- HTML SINGLE PAGE ---
110 mkdir -p wsdg_html/wsdg_graphics
111 mkdir -p wsdg_html/wsdg_graphics/toolbar
112 cp ./wsdg_graphics/*.* wsdg_html/wsdg_graphics
113 cp ./wsdg_graphics/toolbar/*.* wsdg_html/wsdg_graphics/toolbar
114 $(XSLTPROC) --nonet $(DOCBOOKXSL)/html/docbook.xsl developer-guide.xml > wsdg_html/developer-guide.html
116 # create html chunked page files
118 @ echo --- HTML CHUNKED ---
119 mkdir -p wsdg_html_chunked
120 mkdir -p wsdg_html_chunked/wsdg_graphics
121 mkdir -p wsdg_html_chunked/wsdg_graphics/toolbar
122 cp ./wsdg_graphics/*.* wsdg_html_chunked/wsdg_graphics
123 cp ./wsdg_graphics/toolbar/*.* wsdg_html_chunked/wsdg_graphics/toolbar
124 $(XSLTPROC) --stringparam base.dir wsdg_html_chunked/ --stringparam use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path wsdg_graphics/ --stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 --nonet $(DOCBOOKXSL)/html/chunk.xsl developer-guide.xml
126 # create pdf file (through XSL-FO), portrait pages on US letter paper (the default)
127 # you will get lot's of errors, but that's ok
130 @ echo --- PDF US PAPER ---
131 $(XSLTPROC) --nonet custom_layer_pdf.xsl $(DOCBOOKXSL)/fo/docbook.xsl developer-guide.xml > developer-guide.fo
132 $(FOP) developer-guide.fo developer-guide.pdf
135 # create pdf file (through XSL-FO), portrait pages on A4 paper
136 # you will get lot's of errors, but that's ok
139 @ echo --- PDF A4 PAPER ---
140 $(XSLTPROC) --stringparam paper.type A4 --nonet custom_layer_pdf.xsl developer-guide.xml > developer-guide.fo
141 $(FOP) developer-guide.fo developer-guide.pdf
144 # create MS html help file (through html chunked pages)
147 @ echo --- MICROSOFT HTML HELP ---
149 mkdir -p wsdg_chm/wsdg_graphics
150 mkdir -p wsdg_chm/wsdg_graphics/toolbar
151 cp ./wsdg_graphics/*.* wsdg_chm/wsdg_graphics
152 cp ./wsdg_graphics/toolbar/*.* wsdg_chm/wsdg_graphics/toolbar
153 $(XSLTPROC) --stringparam base.dir wsdg_chm/ --stringparam use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path wsdg_graphics/ --stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 --nonet $(DOCBOOKXSL)/htmlhelp/htmlhelp.xsl developer-guide.xml
155 mv htmlhelp.chm developer-guide.chm