forked from davidpriest/ptp-tools
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'init' command to configure env vars and fop configuration
..use "source [toolspath]/init.sh" in bash ..use "call [toolspath]\init.bat" in Windows ..see docs repos for examples
- Loading branch information
David Priest
committed
Mar 14, 2013
1 parent
5262d2d
commit 9f00264
Showing
10 changed files
with
52 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
@ECHO OFF | ||
SET DOCTOOLS=%CD% | ||
SET XMLSH=%PWD%/xmlsh | ||
SET PATH=%DOCTOOLS%/xmlsh/unix;%DOCTOOLS%/fop;%DOCTOOLS%/asciidoc;%DOCTOOLS%/xsltproc;$PATH | ||
SET XML_CATALOG_FILES=%DOCTOOLS%/CATALOG.XML | ||
REM Use Strawberry Perl's portable shell launcher to set DOCTOOLS | ||
SET here=%~dp0 | ||
SET DOCTOOLS=%here% | ||
IF #%here:~-1%# == #\# SET DOCTOOLS=%here:~0,-1% | ||
|
||
SET XMLSH=%DOCTOOLS%\xmlsh | ||
SET PATH=%DOCTOOLS%\asciidoc;%DOCTOOLS%\fop;%DOCTOOLS%\xsltproc;%DOCTOOLS%\xmlsh\win32;%PATH% | ||
SET XML_CATALOG_FILES=%DOCTOOLS%\CATALOG.XML | ||
|
||
xsltproc --stringparam DOCTOOLS %DOCTOOLS% %DOCTOOLS%\init.xsl %DOCTOOLS%\mksupport-common\fop.conf.template > %DOCTOOLS%\mksupport-common\fop.win.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/bin/bash | ||
export DOCTOOLS=$PWD | ||
export XMLSH=$PWD/xmlsh | ||
export DOCTOOLS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
export XMLSH=$DOCTOOLS/xmlsh | ||
export PATH=$DOCTOOLS/asciidoc:$DOCTOOLS/fop:$DOCTOOLS/xmlsh/unix:$PATH | ||
export XML_CATALOG_FILES=$DOCTOOLS/CATALOG.XML | ||
|
||
xsltproc --stringparam DOCTOOLS $DOCTOOLS $DOCTOOLS/init.xsl $DOCTOOLS/mksupport-common/fop.conf.template > $DOCTOOLS/mksupport-common/fop.bash.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0"?> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | ||
<xsl:param name="DOCTOOLS"/> | ||
<xsl:template match="base"> | ||
<xsl:copy> | ||
<xsl:copy-of select="@*"/> | ||
<xsl:value-of select="$DOCTOOLS"/><xsl:text>/mksupport-common/</xsl:text> | ||
</xsl:copy> | ||
</xsl:template> | ||
<xsl:template match="font-base"> | ||
<xsl:copy> | ||
<xsl:copy-of select="@*"/> | ||
<xsl:value-of select="$DOCTOOLS"/><xsl:text>/mksupport-common/fonts/</xsl:text> | ||
</xsl:copy> | ||
</xsl:template> | ||
<xsl:template match="@*|node()"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="@*|node()"/> | ||
</xsl:copy> | ||
</xsl:template> | ||
</xsl:stylesheet> |
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
mksupport-common/fop.win.conf → mksupport-common/fop.conf.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters