Shlomi Fish committed f25f67c

Add the English-HTML-for-openoffice target.

Comments (0)

Files changed (1)

 ENG_EPUB = $(ENG_DB_DIR)/The-Enemy-English.epub
 ENG_XHTML = $(ENG_DB_DIR)/The-Enemy-English.xhtml
 ENG_DB_PROCESSED = $(ENG_DB_DIR)/PROCESSED_The-Enemy-English.db5.xml
 ENG_DB_XSLT = $(ENG_DB_DIR)/docbook-epub-preproc.xslt
 ENG_DB_SOURCE = $(ENG_DB_DIR)/The-Enemy-English.db5.xml
+ENG_HTML_FOR_OOO = $(ENG_DB_DIR)/The-Enemy-English.for-openoffice.html
 	xsltproc --output $@ $(ENG_DB_XSLT) $(ENG_DB_SOURCE)
 	xsltproc --stringparam root.filename $@ --path $(DOCBOOK5_XSL_STYLESHEETS_XHTML_PATH) -o $@ $(DOCBOOK5_XSL_CUSTOM_XSLT_STYLESHEET) $<
 	mv -f English-Docbook/English-Docbook/The-Enemy-English.xhtml.html $@
+	cat $< | perl -lne 'print unless m{\A<\?xml}' > $@
+openoffice: $(ENG_HTML_FOR_OOO)
+	ooffice3.2 $<
 .PHONY: epub_ff
 epub_ff: $(ENG_EPUB)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.