List:Commits« Previous MessageNext Message »
From:mcbrown Date:July 29 2006 5:31am
Subject:svn commit - mysqldoc@docsrva: r2881 - trunk/make.d
View as plain text  
Author: mcbrown
Date: 2006-07-29 07:31:52 +0200 (Sat, 29 Jul 2006)
New Revision: 2881

Log:
Fixed the plugin naming and ID references so that you can install multiple versions of the same manual, each within their own Eclipse ID space.



Modified:
   trunk/make.d/xml-eclipse


Modified: trunk/make.d/xml-eclipse
===================================================================
--- trunk/make.d/xml-eclipse	2006-07-28 23:16:02 UTC (rev 2880)
+++ trunk/make.d/xml-eclipse	2006-07-29 05:31:52 UTC (rev 2881)
Changed blocks: 2, Lines Added: 5, Lines Deleted: 0; 721 bytes

@@ -1,5 +1,8 @@
 # Convert DocBook -> Multiple HTML files with Eclipse TOC/Plugin definition
 
+BASE_PWD = $(shell pwd)        
+BASE_DIR = $(shell basename $(BASE_PWD)| tr -- '-' '_' )
+
 %.eclipse: %-prepped.xml $(MYSQL_ECLIPSE_XSL_DEPS)
 	-$(RM) -r $@ $@-tmp
 	mkdir $@-tmp

@@ -9,6 +12,8 @@
 		$(MYSQL_ECLIPSE_XSL) \
 		$<
 	mv $@-tmp $@
+	sed -e 's/com.mysql.refman/com.mysql.$(BASE_DIR)/' <$@/plugin.xml >$@/plugin.xml.new
+	mv $@/plugin.xml.new $@/plugin.xml
 
 clean::
 	$(RM) -rf *.eclipse *.eclipse-tmp


Thread
svn commit - mysqldoc@docsrva: r2881 - trunk/make.dmcbrown29 Jul