]> granicus.if.org Git - docbook-dsssl/commitdiff
Attempting to include sample Makefile in webhelp output dir
authorDavid Cramer <david@thingbag.net>
Sat, 15 Dec 2012 03:37:18 +0000 (03:37 +0000)
committerDavid Cramer <david@thingbag.net>
Sat, 15 Dec 2012 03:37:18 +0000 (03:37 +0000)
xsl/webhelp/Makefile.sample [new file with mode: 0644]

diff --git a/xsl/webhelp/Makefile.sample b/xsl/webhelp/Makefile.sample
new file mode 100644 (file)
index 0000000..2feb65c
--- /dev/null
@@ -0,0 +1,54 @@
+# Configuration\r
+DOCBOOK_DIST := ../$(pwd)\r
+\r
+DOCBOOK_EXTENSIONS_DIR = $(DOCBOOK_DIST)/extensions\r
+\r
+INPUT_XML = docsrc/readme.xml\r
+USER_IMAGES_PARENT_DIR=docsrc\r
+OUTPUT_DIR = docs\r
+INDEXER_EXCLUDED_FILES = ix01.html\r
+\r
+INDEXER_JAR   := $(DOCBOOK_EXTENSIONS_DIR)/webhelpindexer.jar\r
+TAGSOUP_JAR   := $(DOCBOOK_EXTENSIONS_DIR)/tagsoup-1.2.1.jar\r
+LUCENE_ANALYZER_JAR   := $(DOCBOOK_EXTENSIONS_DIR)/lucene-analyzers-3.0.0.jar\r
+LUCENE_CORE_JAR   := $(DOCBOOK_EXTENSIONS_DIR)/lucene-core-3.0.0.jar\r
+\r
+classpath := $(INDEXER_JAR):$(TAGSOUP_JAR):$(LUCENE_ANALYZER_JAR):$(LUCENE_CORE_JAR)\r
+\r
+all: webhelp\r
+\r
+webhelp: $(INPUT_XML) copyfiles chunk index\r
+\r
+copyfiles:\r
+       -rm -rf $(OUTPUT_DIR)\r
+       mkdir -p $(OUTPUT_DIR)\r
+       cp -r template/common ${OUTPUT_DIR}\r
+       test ! -d $(USER_IMAGES_PARENT_DIR)/images/ || cp -r $(USER_IMAGES_PARENT_DIR)/images ${OUTPUT_DIR}/images\r
+       cp template/favicon.ico ${OUTPUT_DIR}/\r
+\r
+chunk:\r
+       xsltproc  --output  xincluded-profiled.xml  \\r
+                  --stringparam  profile.os  "linux" \\r
+                  ../profiling/profile.xsl  \\r
+                  ${INPUT_XML}\r
+\r
+       xsltproc --xinclude xsl/webhelp.xsl xincluded-profiled.xml      \r
+\r
+       rm xincluded-profiled.xml\r
+index:\r
+       java \\r
+                -DhtmlDir=$(OUTPUT_DIR) \\r
+                -DindexerLanguage=en \\r
+                -DhtmlExtension=html \\r
+                -DdoStem=true \\r
+                -DindexerExcludedFiles=$(INDEXER_EXCLUDED_FILES) \\r
+                -Dorg.xml.sax.driver=org.ccil.cowan.tagsoup.Parser \\r
+                -Djavax.xml.parsers.SAXParserFactory=org.ccil.cowan.tagsoup.jaxp.SAXFactoryImpl \\r
+                -classpath $(classpath) \\r
+                com.nexwave.nquindexer.IndexerMain\r
+\r
+       cp -r template/content/search/* ${OUTPUT_DIR}/search\r
+\r
+clean:\r
+       $(RM) -r docs/*\r
+\r