Revision: 7297
http://winmerge.svn.sourceforge.net/winmerge/?rev=7297&view=rev
Author: denisbradford
Date: 2010-10-04 15:07:18 +0000 (Mon, 04 Oct 2010)
Log Message:
-----------
Update changes to doc tour build from 12.2.
Added Paths:
-----------
branches/R2_14/Docs/Users/Manual/build/build_tour.bat
branches/R2_14/Docs/Users/Manual/build/build_tour.xsl
Removed Paths:
-------------
branches/R2_14/Docs/Users/Manual/build/build_html_withads.xsl
Deleted: branches/R2_14/Docs/Users/Manual/build/build_html_withads.xsl
===================================================================
--- branches/R2_14/Docs/Users/Manual/build/build_html_withads.xsl 2010-10-04 14:22:51 UTC (rev 7296)
+++ branches/R2_14/Docs/Users/Manual/build/build_html_withads.xsl 2010-10-04 15:07:18 UTC (rev 7297)
@@ -1,44 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
-<!-- ********************************************************************
- build_html_withads.xsl
- WinMerge customization of the XSL DocBook stylesheet distribution.
- Contains customized templates and parameters for the Web site version
- of help; all other styles are inherited from the WinMerge
- build_common.xsl and the stock DocBook stylesheets in ../build/xsl.
-
- See build_common.xsl for editing instructions.
- ********************************************************************
- Changes
- Created July 2008
- ******************************************************************** -->
-
-<xsl:import href="build_html.xsl"/>
-
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-html/docbook.xsl
-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-<!-- WinMerge: commercialize the header -->
-<xsl:template name="user.header.content">
- <div id="ads">
- <script type="text/javascript"><!--
- google_ad_client = "pub-1411904495533584";
- google_ad_width = 728;
- google_ad_height = 90;
- google_ad_format = "728x90_as";
- google_ad_type = "text";
- google_ad_channel ="";
- google_color_border = "FFCC00";
- google_color_bg = "FFFFCC";
- google_color_link = "0000FF";
- google_color_text = "000000";
- google_color_url = "008000";
- //--></script>
- <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
- </script>
- </div>
-</xsl:template>
-
-</xsl:stylesheet>
Added: branches/R2_14/Docs/Users/Manual/build/build_tour.bat
===================================================================
--- branches/R2_14/Docs/Users/Manual/build/build_tour.bat (rev 0)
+++ branches/R2_14/Docs/Users/Manual/build/build_tour.bat 2010-10-04 15:07:18 UTC (rev 7297)
@@ -0,0 +1,47 @@
+@echo off
+
+call configuration.bat
+
+set docbook_inputfile=..\tour\WinMerge_tour.xml
+set docbook_use_stylesheet=build_tour.xsl
+set docbook_outputdir=%docbook_build_path%\tour
+set docbook_outputfile=index.html
+set ads=false
+if "%1" == "withads" goto withads
+if not "%1" == "" goto withadserror
+goto start
+
+:withads
+set ads=true
+echo **************************************
+echo * The manual includes advertisements *
+echo **************************************
+goto start
+
+:withadserror
+echo "%1" is a invalid argument. Please use "withads", if you want advertisements in the manual.
+goto end
+
+:start
+if not exist "%docbook_outputdir%" mkdir "%docbook_outputdir%"
+
+echo Copy images ...
+if not exist "%docbook_outputdir%\images" mkdir "%docbook_outputdir%\images"
+copy "..\images\*.gif" "%docbook_outputdir%\images\."
+copy "..\images\*.png" "%docbook_outputdir%\images\."
+
+echo Copy screenshots...
+if not exist "%docbook_outputdir%\screenshots" mkdir "%docbook_outputdir%\screenshots"
+copy "..\tour\screenshots\*.*" "%docbook_outputdir%\screenshots\."
+
+echo Copy stylesheets...
+if not exist "%docbook_outputdir%\css" mkdir "%docbook_outputdir%\css"
+copy "..\css\*.css" "%docbook_outputdir%\css"
+
+echo Create Tour HTML file...
+%docbook_java_exe% %docbook_java_parameters% -cp %docbook_saxon_jar%;%docbook_xerces_jar%;%docbook_saxon_xsl% -Djavax.xml.parsers.DocumentBuilderFactory=%DBFACTORY% -Djavax.xml.parsers.SAXParserFactory=%SPFACTORY% -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=%XINCLUDE% com.icl.saxon.StyleSheet -o %docbook_outputdir%/%docbook_outputfile% %docbook_inputfile% %docbook_use_stylesheet% withads=%ads%"
+
+echo Finished!
+
+:end
+@echo on
\ No newline at end of file
Added: branches/R2_14/Docs/Users/Manual/build/build_tour.xsl
===================================================================
--- branches/R2_14/Docs/Users/Manual/build/build_tour.xsl (rev 0)
+++ branches/R2_14/Docs/Users/Manual/build/build_tour.xsl 2010-10-04 15:07:18 UTC (rev 7297)
@@ -0,0 +1,62 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+<!-- ********************************************************************
+ build_tour.xsl
+ WinMerge customization of the XSL DocBook stylesheet distribution.
+ Contains customized templates and parameters for generating
+ a single HTML document; all other styles are inherited from the WinMerge
+ build_common.xsl and the stock DocBook stylesheets in ../build/xsl.
+
+ See build_common.xsl for editing instructions.
+ ********************************************************************
+ Changes:
+ Created July 2009
+ ******************************************************************** -->
+
+<xsl:import href="../build/xsl/html/docbook.xsl"/>
+<xsl:import href="build_common.xsl"/>
+
+<xsl:output method="html"
+ encoding="ISO-8859-1"
+ indent="yes"/>
+
+<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+Custom parameters
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+<!-- Define suffix to appear after title text in head/title element of
+every topic -->
+<xsl:param name="headtitle.suffix" select="' - WinMerge 2.12 Quicktour'"/>
+
+<!-- Detect if we're displaying ads for the Web pages -->
+<xsl:param name="withads">false</xsl:param>
+
+<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ html/param.xsl parameters
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+<xsl:param name="section.autolabel" select="0"/>
+<xsl:param name="generate.toc">book toc</xsl:param>
+<xsl:param name="generate.meta.abstract" select="0"/>
+
+
+<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+html/docbook.xsl
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+<!-- Link to the appropriate css stylesheets -->
+<xsl:template name="user.head.content">
+ <link rel="stylesheet" type="text/css" href="css/tour.css" />
+ <link rel="stylesheet" type="text/css" media="print" href="css/print.css" />
+</xsl:template>
+
+<!-- For web pages add banner image and Google ad scripts -->
+<xsl:template name="user.header.content">
+ <div class="header"><a href="http://www.winmerge.org">
+ <img src="images/head.gif" alt="winmerge.org"/></a>
+ </div>
+ <xsl:if test="$withads = 'true'">
+ <xsl:call-template name="header.ads"/>
+ </xsl:if>
+</xsl:template>
+
+</xsl:stylesheet>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|