List:Commits« Previous MessageNext Message »
From:paul Date:April 12 2007 6:53am
Subject:svn commit - mysqldoc@docsrva: r5848 - in trunk: . make.d
View as plain text  
Author: paul
Date: 2007-04-12 06:53:48 +0200 (Thu, 12 Apr 2007)
New Revision: 5848

Log:
 r23190@polar:  paul | 2007-04-11 23:45:31 -0500
 Add %.chm-input rule. To be used for simplifying the Unix side of
 CHM-building. (Also because current process assumes repositories
 are available on staging host, which might not be true in future.)


Modified:
   trunk/make.d/xml-chm

Property changes on: trunk
___________________________________________________________________
Name: svk:merge
   - 4767c598-dc10-0410-bea0-d01b485662eb:/mysqldoc-local/mysqldoc/trunk:23189
7d8d2c4e-af1d-0410-ab9f-b038ce55645b:/mysqldoc-local/mysqldoc:18904
b5ec3a16-e900-0410-9ad2-d183a3acac99:/mysqldoc-local/mysqldoc/trunk:14218
bf112a9c-6c03-0410-a055-ad865cd57414:/mysqldoc-local/mysqldoc/trunk:14593
   + 4767c598-dc10-0410-bea0-d01b485662eb:/mysqldoc-local/mysqldoc/trunk:23190
7d8d2c4e-af1d-0410-ab9f-b038ce55645b:/mysqldoc-local/mysqldoc:18904
b5ec3a16-e900-0410-9ad2-d183a3acac99:/mysqldoc-local/mysqldoc/trunk:14218
bf112a9c-6c03-0410-a055-ad865cd57414:/mysqldoc-local/mysqldoc/trunk:14593


Modified: trunk/make.d/xml-chm
===================================================================
--- trunk/make.d/xml-chm	2007-04-12 04:53:09 UTC (rev 5847)
+++ trunk/make.d/xml-chm	2007-04-12 04:53:48 UTC (rev 5848)
Changed blocks: 1, Lines Added: 23, Lines Deleted: 0; 1226 bytes

@@ -41,8 +41,31 @@
 clean::
 	$(RM) *.chm
 
+# Prepare CHM input that's ready to be copied to a Windows box and
+# used to produce a CHM document.
+# - CSS file
+# - Input source document (the "prepped" input renamed to source.xml)
+# - Any required image files
+
+%.chm-input: %-prepped.xml
+	-$(RM) -r $@ $@-tmp
+	mkdir $@-tmp
+	cp $(XSL_DIR)/mysql-html.css $@-tmp
+	cp $< $@-tmp/source.xml
+	IMAGE_FILES="$(call target_images,$*)"; \
+	if [ "x$$IMAGE_FILES" != "x" ]; then \
+		mkdir $@-tmp/images; \
+		cp $$IMAGE_FILES $@-tmp/images; \
+		$(TOOLS_DIR)/remap-img-paths.pl $@-tmp/source.xml; \
+	fi
+	mv $@-tmp $@
+
+clean::
+	$(RM) -r *.chm-input *.chm-input-tmp
+
 help::
 	@echo "make file.html-help       - convert file.xml to HTML Help, 1 file/chapter"
 	@echo "                            (used for generating CHM)"
 	@echo "                            (putting output in subdirectory)"
 	@echo "make file.chm             - convert file.html-help to file.chm"
+	@echo "make file.chm-input       - prepare input for Windows CHM build"


Thread
svn commit - mysqldoc@docsrva: r5848 - in trunk: . make.dpaul12 Apr