[cedar-backup-svn] SF.net SVN: cedar-backup:[936] cedar-backup2/trunk
Brought to you by:
pronovic
|
From: <pro...@us...> - 2009-03-29 19:35:04
|
Revision: 936
http://cedar-backup.svn.sourceforge.net/cedar-backup/?rev=936&view=rev
Author: pronovic
Date: 2009-03-29 19:35:00 +0000 (Sun, 29 Mar 2009)
Log Message:
-----------
Remove support for user manual PDF format
Modified Paths:
--------------
cedar-backup2/trunk/CREDITS
cedar-backup2/trunk/Changelog
cedar-backup2/trunk/MANIFEST.in
cedar-backup2/trunk/manual/Makefile
Added Paths:
-----------
cedar-backup2/trunk/doc/pdf/
cedar-backup2/trunk/doc/pdf/Makefile
cedar-backup2/trunk/doc/pdf/README.txt
cedar-backup2/trunk/doc/pdf/fo-stylesheet.xsl
cedar-backup2/trunk/doc/pdf/images/
cedar-backup2/trunk/doc/pdf/run-fop.sh
Removed Paths:
-------------
cedar-backup2/trunk/manual/src/images/pdf/
cedar-backup2/trunk/util/docbook/fo-stylesheet.xsl
cedar-backup2/trunk/util/docbook/run-fop.sh
Modified: cedar-backup2/trunk/CREDITS
===================================================================
--- cedar-backup2/trunk/CREDITS 2009-03-29 18:56:50 UTC (rev 935)
+++ cedar-backup2/trunk/CREDITS 2009-03-29 19:35:00 UTC (rev 936)
@@ -23,7 +23,7 @@
software, as indicated in the source code itself.
Unless otherwise indicated, all Cedar Backup source code is Copyright
-(c) 2004-2008 Kenneth J. Pronovici and is released under the GNU General
+(c) 2004-2009 Kenneth J. Pronovici and is released under the GNU General
Public License. The contents of the GNU General Public License can be
found in the LICENSE file, or can be downloaded from http://www.gnu.org/.
@@ -52,11 +52,11 @@
the Subversion source tree and did not specify an explicit copyright
notice.
-Some of the PDF-specific graphics in the user manual were either directly
-taken from or were derived from images distributed in Norman Walsh's
-Docbook XSL distribution. These graphics are (c) 1999, 2000, 2001 Norman
-Walsh and were originally released under a BSD-style license as documented
-below.
+Some of the PDF-specific graphics in the user manual (now obsolete and
+orphaned off in the doc/pdf directory) were either directly taken from or
+were derived from images distributed in Norman Walsh's Docbook XSL
+distribution. These graphics are (c) 1999, 2000, 2001 Norman Walsh and
+were originally released under a BSD-style license as documented below.
Source code annotated as "(c) 2000 Fourthought Inc, USA" was taken from or
derived from code within the PyXML distribution and was originally part of
Modified: cedar-backup2/trunk/Changelog
===================================================================
--- cedar-backup2/trunk/Changelog 2009-03-29 18:56:50 UTC (rev 935)
+++ cedar-backup2/trunk/Changelog 2009-03-29 19:35:00 UTC (rev 936)
@@ -1,6 +1,7 @@
Version 2.19.3 unreleased
* Fix minor epydoc typos, mostly in @sort directives.
+ * Removed support for user manual PDF format (see doc/pdf).
Version 2.19.2 08 Dec 2008
Modified: cedar-backup2/trunk/MANIFEST.in
===================================================================
--- cedar-backup2/trunk/MANIFEST.in 2009-03-29 18:56:50 UTC (rev 935)
+++ cedar-backup2/trunk/MANIFEST.in 2009-03-29 19:35:00 UTC (rev 936)
@@ -19,7 +19,6 @@
include manual/Makefile
include manual/src/*.xml
include manual/src/images/html/*.png
-include manual/src/images/pdf/*.png
include doc/cback.1
include doc/cback-span.1
include doc/cback.conf.sample
Added: cedar-backup2/trunk/doc/pdf/Makefile
===================================================================
--- cedar-backup2/trunk/doc/pdf/Makefile (rev 0)
+++ cedar-backup2/trunk/doc/pdf/Makefile 2009-03-29 19:35:00 UTC (rev 936)
@@ -0,0 +1,167 @@
+# vim: set ft=make:
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+#
+# C E D A R
+# S O L U T I O N S "Software done right."
+# S O F T W A R E
+#
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+#
+# Author : Kenneth J. Pronovici <pro...@ie...>
+# Language : Make
+# Project : Cedar Backup, release 2
+# Revision : $Id$
+# Purpose : Makefile used for building the Cedar Backup manual.
+#
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+
+########
+# Notes
+########
+
+# This Makefile was originally taken from the Subversion project's book
+# (http://svnbook.red-bean.com/) and has been substantially modifed (almost
+# completely rewritten) for use with Cedar Backup.
+#
+# The original Makefile was (c) 2000-2004 CollabNet (see CREDITS).
+#
+# Note that by default, we only build HTML, HTML chunk and PDF output,
+# not Postscript.
+
+
+########################
+# Programs and commands
+########################
+
+CP = cp
+FOP = ../util/docbook/run-fop.sh
+INSTALL = install
+MKDIR = mkdir
+RM = rm
+XSLTPROC = xsltproc
+W3M = w3m
+
+
+############
+# Locations
+############
+
+INSTALL_DIR = ../doc/manual
+
+XSL_DIR = ../util/docbook
+STYLES_CSS = $(XSL_DIR)/styles.css
+XSL_FO = $(XSL_DIR)/fo-stylesheet.xsl
+XSL_HTML = $(XSL_DIR)/html-stylesheet.xsl
+XSL_CHUNK = $(XSL_DIR)/chunk-stylesheet.xsl
+
+MANUAL_TOP = .
+MANUAL_DIR = $(MANUAL_TOP)/src
+MANUAL_CHUNK_DIR = $(MANUAL_DIR)/chunk
+MANUAL_HTML_TARGET = $(MANUAL_DIR)/manual.html
+MANUAL_CHUNK_TARGET = $(MANUAL_CHUNK_DIR)/index.html # index.html is created last
+MANUAL_PDF_TARGET = $(MANUAL_DIR)/manual.pdf
+MANUAL_PS_TARGET = $(MANUAL_DIR)/manual.ps
+MANUAL_FO_TARGET = $(MANUAL_DIR)/manual.fo
+MANUAL_TEXT_TARGET = $(MANUAL_DIR)/manual.txt
+MANUAL_XML_SOURCE = $(MANUAL_DIR)/book.xml
+MANUAL_ALL_SOURCE = $(MANUAL_DIR)/*.xml
+MANUAL_HTML_IMAGES = $(MANUAL_DIR)/images/html/*.png
+MANUAL_PDF_IMAGES = $(MANUAL_DIR)/images/pdf/*.png
+
+
+#############################################
+# High-level targets and simple dependencies
+#############################################
+
+all: manual-html manual-chunk
+
+install: install-manual-pdf install-manual-html install-manual-chunk install-manual-text
+
+clean:
+ -@$(RM) -f $(MANUAL_HTML_TARGET) $(MANUAL_FO_TARGET) $(MANUAL_TEXT_TARGET)
+ -@$(RM) -rf $(MANUAL_CHUNK_DIR)
+ -@$(RM) -f $(MANUAL_PDF_TARGET) $(MANUAL_PS_TARGET)
+
+$(INSTALL_DIR):
+ $(INSTALL) --mode=775 -d $(INSTALL_DIR)
+
+
+###################
+# HTML build rules
+###################
+
+manual-html: $(MANUAL_HTML_TARGET)
+
+$(MANUAL_HTML_TARGET): $(MANUAL_ALL_SOURCE)
+ $(XSLTPROC) --output $(MANUAL_HTML_TARGET) $(XSL_HTML) $(MANUAL_XML_SOURCE)
+
+install-manual-html: $(MANUAL_HTML_TARGET) $(INSTALL_DIR)
+ $(INSTALL) --mode=775 -d $(INSTALL_DIR)/images
+ $(INSTALL) --mode=664 $(MANUAL_HTML_TARGET) $(INSTALL_DIR)
+ $(INSTALL) --mode=664 $(STYLES_CSS) $(INSTALL_DIR)
+ $(INSTALL) --mode=664 $(MANUAL_HTML_IMAGES) $(INSTALL_DIR)/images
+
+
+###########################
+# Chunked HTML build rules
+##################*########
+
+manual-chunk: $(MANUAL_CHUNK_TARGET)
+
+# The trailing slash in the $(XSLTPROC) command is essential, so that xsltproc will output pages to the dir
+$(MANUAL_CHUNK_TARGET): $(MANUAL_ALL_SOURCE) $(STYLES_CSS) $(MANUAL_HTML_IMAGES)
+ $(MKDIR) -p $(MANUAL_CHUNK_DIR)
+ $(MKDIR) -p $(MANUAL_CHUNK_DIR)/images
+ $(XSLTPROC) --output $(MANUAL_CHUNK_DIR)/ $(XSL_CHUNK) $(MANUAL_XML_SOURCE)
+ $(CP) $(STYLES_CSS) $(MANUAL_CHUNK_DIR)
+ $(CP) $(MANUAL_HTML_IMAGES) $(MANUAL_CHUNK_DIR)/images
+
+install-manual-chunk: $(MANUAL_CHUNK_TARGET) $(INSTALL_DIR)
+ $(INSTALL) --mode=775 -d $(INSTALL_DIR)/images
+ $(INSTALL) --mode=664 $(MANUAL_CHUNK_DIR)/*.html $(INSTALL_DIR)
+ $(INSTALL) --mode=664 $(STYLES_CSS) $(INSTALL_DIR)
+ $(INSTALL) --mode=664 $(MANUAL_HTML_IMAGES) $(INSTALL_DIR)/images
+
+
+###################
+# Text build rules
+###################
+
+manual-text: manual-html $(MANUAL_TEXT_TARGET)
+
+$(MANUAL_TEXT_TARGET):
+ $(W3M) -dump -cols 80 $(MANUAL_HTML_TARGET) > $(MANUAL_TEXT_TARGET)
+
+install-manual-text: $(MANUAL_TEXT_TARGET) $(INSTALL_DIR)
+ $(INSTALL) --mode=664 $(MANUAL_TEXT_TARGET) $(INSTALL_DIR)
+
+
+##################
+# PDF build rules
+##################
+
+manual-pdf: $(MANUAL_PDF_TARGET)
+
+$(MANUAL_PDF_TARGET): $(MANUAL_ALL_SOURCE) $(MANUAL_PDF_IMAGES)
+ # For some reason --output conflicts with admon.graphics.path ?!?!
+ # $(XSLTPROC) --output $(MANUAL_FO_TARGET) $(XSL_FO) $(MANUAL_XML_SOURCE)
+ $(XSLTPROC) $(XSL_FO) $(MANUAL_XML_SOURCE) > $(MANUAL_FO_TARGET)
+ $(FOP) $(MANUAL_TOP) -fo $(MANUAL_FO_TARGET) -pdf $(MANUAL_PDF_TARGET)
+
+install-manual-pdf: $(MANUAL_PDF_TARGET) $(INSTALL_DIR)
+ $(INSTALL) --mode=664 $(MANUAL_PDF_TARGET) $(INSTALL_DIR)
+
+
+#########################
+# Postscript build rules
+#########################
+
+manual-ps: $(MANUAL_PS_TARGET)
+
+$(MANUAL_PS_TARGET): $(MANUAL_ALL_SOURCE) $(MANUAL_PDF_IMAGES)
+ $(XSLTPROC) --output $(MANUAL_FO_TARGET) $(XSL_FO) $(MANUAL_XML_SOURCE)
+ $(FOP) $(MANUAL_TOP) -fo $(MANUAL_FO_TARGET) -ps $(MANUAL_PS_TARGET)
+
+install-manual-ps: $(MANUAL_PS_TARGET) $(INSTALL_DIR)
+ $(INSTALL) --mode=664 $(MANUAL_PS_TARGET) $(INSTALL_DIR)
+
Property changes on: cedar-backup2/trunk/doc/pdf/Makefile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: cedar-backup2/trunk/doc/pdf/README.txt
===================================================================
--- cedar-backup2/trunk/doc/pdf/README.txt (rev 0)
+++ cedar-backup2/trunk/doc/pdf/README.txt 2009-03-29 19:35:00 UTC (rev 936)
@@ -0,0 +1,19 @@
+Through Cedar Backup 2.19.2, I supported the user manual in the PDF format.
+Unfortunately, the toolchain changed in early 2009 (when Debian lenny was
+released) and I can no longer build the PDF format properly. The existing
+FOP-based solution simply blows up, and the other alternatives I looked at
+(such as 'xmlto pdf') don't work, either.
+
+As a result, I am removing support for the PDF documentation. I don't
+think it is heavily utilized, and I can't find the time or motivation right
+now to fight with the toolchain. To be honest, I'm quite frustrated that
+somthing which has worked fine for so long is completely broken now. Maybe
+I'm just missing something completely obvious, but I can't find it.
+
+This directory contains the various files that I orphaned when removing PDF
+support. If/when I get PDFs working properly again, this stuff will either
+be integrated back into the codebase proper, or will get removed completely
+(since it will be obsolete).
+
+KJP
+29 Mar 2009
Copied: cedar-backup2/trunk/doc/pdf/fo-stylesheet.xsl (from rev 933, cedar-backup2/trunk/util/docbook/fo-stylesheet.xsl)
===================================================================
--- cedar-backup2/trunk/doc/pdf/fo-stylesheet.xsl (rev 0)
+++ cedar-backup2/trunk/doc/pdf/fo-stylesheet.xsl 2009-03-29 19:35:00 UTC (rev 936)
@@ -0,0 +1,58 @@
+<!--
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+#
+# C E D A R
+# S O L U T I O N S "Software done right."
+# S O F T W A R E
+#
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+#
+# Author : Kenneth J. Pronovici <pro...@ie...>
+# Language : XSLT
+# Project : Cedar Backup, release 2
+# Revision : $Id$
+# Purpose : XSLT stylesheet for FO Docbook output (used for PDF and Postscript)
+#
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+-->
+<!--
+ This stylesheet was originally taken from the Subversion project's book
+ (http://svnbook.red-bean.com/) and has been modifed for use with Cedar
+ Backup.
+
+ The original stylesheet was (c) 2000-2004 CollabNet (see CREDITS).
+
+ The major change that I have made to the stylesheet is to use Debian's
+ catalog system for locating the official Docbook stylesheet, rather than
+ expecting it to be part of the source tree. If your operating system does
+ not have a working catalog system, then specify an absolute path to a valid
+ stylesheet below where fo/docbook.xsl is imported (or switch to a real
+ operating system).
+
+ I have also modified the stylesheet to include "admonition" graphics (for
+ warning, tip, note, etc.) in the PDF output, and I now use my own greyscale
+ images for PDF and Postscript (taken from nwalsh's originals and modified)
+ rather than converting the color images from O'Reilly.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
+
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
+
+ <xsl:param name="fop.extensions" select="1"/>
+ <xsl:param name="variablelist.as.blocks" select="1"/>
+
+ <xsl:param name="hyphenate">false</xsl:param>
+
+ <xsl:param name="paper.type" select="'USletter'"/>
+
+ <xsl:param name="page.margin.bottom" select="'0.8in'"/>
+ <xsl:param name="page.margin.top" select="'0.8in'"/>
+
+ <xsl:param name="footer.rule" select="0"/>
+
+ <xsl:param name="admon.graphics" select="1"/>
+ <xsl:param name="admon.graphics.extension" select="'.png'"/>
+ <xsl:param name="admon.graphics.path">images/pdf/</xsl:param>
+
+</xsl:stylesheet>
Property changes on: cedar-backup2/trunk/doc/pdf/fo-stylesheet.xsl
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:mergeinfo
+
Property changes on: cedar-backup2/trunk/doc/pdf/images
___________________________________________________________________
Added: svn:mergeinfo
+
Copied: cedar-backup2/trunk/doc/pdf/run-fop.sh (from rev 933, cedar-backup2/trunk/util/docbook/run-fop.sh)
===================================================================
--- cedar-backup2/trunk/doc/pdf/run-fop.sh (rev 0)
+++ cedar-backup2/trunk/doc/pdf/run-fop.sh 2009-03-29 19:35:00 UTC (rev 936)
@@ -0,0 +1,76 @@
+#!/bin/sh
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+#
+# C E D A R
+# S O L U T I O N S "Software done right."
+# S O F T W A R E
+#
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+#
+# Author : Kenneth J. Pronovici <pro...@ie...>
+# Language : Bourne Shell
+# Project : Cedar Backup, release 2
+# Revision : $Id$
+# Purpose : Wrapper script to run the fop program for PDF and Postscript
+#
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+# This script was originally taken from the Subversion project's book
+# (http://svnbook.red-bean.com/). I have not made any modifications to
+# the script for use with Cedar Backup.
+#
+# The original script was (c) 2000-2004 CollabNet (see CREDITS).
+
+# run-fop: Attempt to run fop (or fop.sh), fail articulately otherwise.
+#
+# Usage: run-fop.sh BOOK_TOP [FOP_ARGS...]
+#
+# This script is meant to be invoked by subversion/doc/book/Makefile.
+# The first argument is the top of the book directory, that is,
+# subversion/doc/book (*not* subversion/doc/book/book), and the
+# remaining arguments are passed along to `fop'.
+
+BOOK_TOP=${1}
+
+if [ "${BOOK_TOP}X" = X ]; then
+ echo "usage: run-fop.sh BOOK_TOP [FOP_ARGS...]"
+ exit 1
+fi
+
+shift
+
+# The fop of last resort.
+DESPERATION_FOP_DIR=${BOOK_TOP}/tools/fop
+DESPERATION_FOP_PGM=${DESPERATION_FOP_DIR}/fop.sh
+
+if [ "${FOP_HOME}X" = X ]; then
+ FOP_HOME=${DESPERATION_FOP_DIR}
+ export FOP_HOME
+fi
+
+
+# Unfortunately, 'which' seems to behave slightly differently on every
+# platform, making it unreliable for shell scripts. Just do it inline
+# instead. Also, note that we search for `fop' or `fop.sh', since
+# different systems seem to package it different ways.
+SAVED_IFS=${IFS}
+IFS=:
+for dir in ${PATH}; do
+ if [ -x ${dir}/fop -a "${FOP_PGM}X" = X ]; then
+ FOP_PGM=${dir}/fop
+ elif [ -x ${dir}/fop.sh -a "${FOP_PGM}X" = X ]; then
+ FOP_PGM=${dir}/fop.sh
+ fi
+done
+IFS=${SAVED_IFS}
+
+if [ "${FOP_PGM}X" = X ]; then
+ FOP_PGM=${DESPERATION_FOP_PGM}
+fi
+
+echo "(Using '${FOP_PGM}' for FOP)"
+
+# FOP is noisy on stdout, and -q doesn't seem to help, so stuff that
+# garbage into /dev/null.
+${FOP_PGM} $@ | grep -v "\[ERROR\]"
+#${FOP_PGM} $@
+
Property changes on: cedar-backup2/trunk/doc/pdf/run-fop.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Id
Added: svn:mergeinfo
+
Modified: cedar-backup2/trunk/manual/Makefile
===================================================================
--- cedar-backup2/trunk/manual/Makefile 2009-03-29 18:56:50 UTC (rev 935)
+++ cedar-backup2/trunk/manual/Makefile 2009-03-29 19:35:00 UTC (rev 936)
@@ -24,9 +24,6 @@
# completely rewritten) for use with Cedar Backup.
#
# The original Makefile was (c) 2000-2004 CollabNet (see CREDITS).
-#
-# Note that by default, we only build HTML, HTML chunk and PDF output,
-# not Postscript.
########################
@@ -34,7 +31,6 @@
########################
CP = cp
-FOP = ../util/docbook/run-fop.sh
INSTALL = install
MKDIR = mkdir
RM = rm
@@ -59,14 +55,10 @@
MANUAL_CHUNK_DIR = $(MANUAL_DIR)/chunk
MANUAL_HTML_TARGET = $(MANUAL_DIR)/manual.html
MANUAL_CHUNK_TARGET = $(MANUAL_CHUNK_DIR)/index.html # index.html is created last
-MANUAL_PDF_TARGET = $(MANUAL_DIR)/manual.pdf
-MANUAL_PS_TARGET = $(MANUAL_DIR)/manual.ps
-MANUAL_FO_TARGET = $(MANUAL_DIR)/manual.fo
MANUAL_TEXT_TARGET = $(MANUAL_DIR)/manual.txt
MANUAL_XML_SOURCE = $(MANUAL_DIR)/book.xml
MANUAL_ALL_SOURCE = $(MANUAL_DIR)/*.xml
MANUAL_HTML_IMAGES = $(MANUAL_DIR)/images/html/*.png
-MANUAL_PDF_IMAGES = $(MANUAL_DIR)/images/pdf/*.png
#############################################
@@ -75,12 +67,11 @@
all: manual-html manual-chunk
-install: install-manual-pdf install-manual-html install-manual-chunk install-manual-text
+install: install-manual-html install-manual-chunk install-manual-text
clean:
-@$(RM) -f $(MANUAL_HTML_TARGET) $(MANUAL_FO_TARGET) $(MANUAL_TEXT_TARGET)
-@$(RM) -rf $(MANUAL_CHUNK_DIR)
- -@$(RM) -f $(MANUAL_PDF_TARGET) $(MANUAL_PS_TARGET)
$(INSTALL_DIR):
$(INSTALL) --mode=775 -d $(INSTALL_DIR)
@@ -136,32 +127,3 @@
$(INSTALL) --mode=664 $(MANUAL_TEXT_TARGET) $(INSTALL_DIR)
-##################
-# PDF build rules
-##################
-
-manual-pdf: $(MANUAL_PDF_TARGET)
-
-$(MANUAL_PDF_TARGET): $(MANUAL_ALL_SOURCE) $(MANUAL_PDF_IMAGES)
- # For some reason --output conflicts with admon.graphics.path ?!?!
- # $(XSLTPROC) --output $(MANUAL_FO_TARGET) $(XSL_FO) $(MANUAL_XML_SOURCE)
- $(XSLTPROC) $(XSL_FO) $(MANUAL_XML_SOURCE) > $(MANUAL_FO_TARGET)
- $(FOP) $(MANUAL_TOP) -fo $(MANUAL_FO_TARGET) -pdf $(MANUAL_PDF_TARGET)
-
-install-manual-pdf: $(MANUAL_PDF_TARGET) $(INSTALL_DIR)
- $(INSTALL) --mode=664 $(MANUAL_PDF_TARGET) $(INSTALL_DIR)
-
-
-#########################
-# Postscript build rules
-#########################
-
-manual-ps: $(MANUAL_PS_TARGET)
-
-$(MANUAL_PS_TARGET): $(MANUAL_ALL_SOURCE) $(MANUAL_PDF_IMAGES)
- $(XSLTPROC) --output $(MANUAL_FO_TARGET) $(XSL_FO) $(MANUAL_XML_SOURCE)
- $(FOP) $(MANUAL_TOP) -fo $(MANUAL_FO_TARGET) -ps $(MANUAL_PS_TARGET)
-
-install-manual-ps: $(MANUAL_PS_TARGET) $(INSTALL_DIR)
- $(INSTALL) --mode=664 $(MANUAL_PS_TARGET) $(INSTALL_DIR)
-
Deleted: cedar-backup2/trunk/util/docbook/fo-stylesheet.xsl
===================================================================
--- cedar-backup2/trunk/util/docbook/fo-stylesheet.xsl 2009-03-29 18:56:50 UTC (rev 935)
+++ cedar-backup2/trunk/util/docbook/fo-stylesheet.xsl 2009-03-29 19:35:00 UTC (rev 936)
@@ -1,58 +0,0 @@
-<!--
-# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-#
-# C E D A R
-# S O L U T I O N S "Software done right."
-# S O F T W A R E
-#
-# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-#
-# Author : Kenneth J. Pronovici <pro...@ie...>
-# Language : XSLT
-# Project : Cedar Backup, release 2
-# Revision : $Id$
-# Purpose : XSLT stylesheet for FO Docbook output (used for PDF and Postscript)
-#
-# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
--->
-<!--
- This stylesheet was originally taken from the Subversion project's book
- (http://svnbook.red-bean.com/) and has been modifed for use with Cedar
- Backup.
-
- The original stylesheet was (c) 2000-2004 CollabNet (see CREDITS).
-
- The major change that I have made to the stylesheet is to use Debian's
- catalog system for locating the official Docbook stylesheet, rather than
- expecting it to be part of the source tree. If your operating system does
- not have a working catalog system, then specify an absolute path to a valid
- stylesheet below where fo/docbook.xsl is imported (or switch to a real
- operating system).
-
- I have also modified the stylesheet to include "admonition" graphics (for
- warning, tip, note, etc.) in the PDF output, and I now use my own greyscale
- images for PDF and Postscript (taken from nwalsh's originals and modified)
- rather than converting the color images from O'Reilly.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
-
- <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
-
- <xsl:param name="fop.extensions" select="1"/>
- <xsl:param name="variablelist.as.blocks" select="1"/>
-
- <xsl:param name="hyphenate">false</xsl:param>
-
- <xsl:param name="paper.type" select="'USletter'"/>
-
- <xsl:param name="page.margin.bottom" select="'0.8in'"/>
- <xsl:param name="page.margin.top" select="'0.8in'"/>
-
- <xsl:param name="footer.rule" select="0"/>
-
- <xsl:param name="admon.graphics" select="1"/>
- <xsl:param name="admon.graphics.extension" select="'.png'"/>
- <xsl:param name="admon.graphics.path">images/pdf/</xsl:param>
-
-</xsl:stylesheet>
Deleted: cedar-backup2/trunk/util/docbook/run-fop.sh
===================================================================
--- cedar-backup2/trunk/util/docbook/run-fop.sh 2009-03-29 18:56:50 UTC (rev 935)
+++ cedar-backup2/trunk/util/docbook/run-fop.sh 2009-03-29 19:35:00 UTC (rev 936)
@@ -1,76 +0,0 @@
-#!/bin/sh
-# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-#
-# C E D A R
-# S O L U T I O N S "Software done right."
-# S O F T W A R E
-#
-# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-#
-# Author : Kenneth J. Pronovici <pro...@ie...>
-# Language : Bourne Shell
-# Project : Cedar Backup, release 2
-# Revision : $Id$
-# Purpose : Wrapper script to run the fop program for PDF and Postscript
-#
-# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-# This script was originally taken from the Subversion project's book
-# (http://svnbook.red-bean.com/). I have not made any modifications to
-# the script for use with Cedar Backup.
-#
-# The original script was (c) 2000-2004 CollabNet (see CREDITS).
-
-# run-fop: Attempt to run fop (or fop.sh), fail articulately otherwise.
-#
-# Usage: run-fop.sh BOOK_TOP [FOP_ARGS...]
-#
-# This script is meant to be invoked by subversion/doc/book/Makefile.
-# The first argument is the top of the book directory, that is,
-# subversion/doc/book (*not* subversion/doc/book/book), and the
-# remaining arguments are passed along to `fop'.
-
-BOOK_TOP=${1}
-
-if [ "${BOOK_TOP}X" = X ]; then
- echo "usage: run-fop.sh BOOK_TOP [FOP_ARGS...]"
- exit 1
-fi
-
-shift
-
-# The fop of last resort.
-DESPERATION_FOP_DIR=${BOOK_TOP}/tools/fop
-DESPERATION_FOP_PGM=${DESPERATION_FOP_DIR}/fop.sh
-
-if [ "${FOP_HOME}X" = X ]; then
- FOP_HOME=${DESPERATION_FOP_DIR}
- export FOP_HOME
-fi
-
-
-# Unfortunately, 'which' seems to behave slightly differently on every
-# platform, making it unreliable for shell scripts. Just do it inline
-# instead. Also, note that we search for `fop' or `fop.sh', since
-# different systems seem to package it different ways.
-SAVED_IFS=${IFS}
-IFS=:
-for dir in ${PATH}; do
- if [ -x ${dir}/fop -a "${FOP_PGM}X" = X ]; then
- FOP_PGM=${dir}/fop
- elif [ -x ${dir}/fop.sh -a "${FOP_PGM}X" = X ]; then
- FOP_PGM=${dir}/fop.sh
- fi
-done
-IFS=${SAVED_IFS}
-
-if [ "${FOP_PGM}X" = X ]; then
- FOP_PGM=${DESPERATION_FOP_PGM}
-fi
-
-echo "(Using '${FOP_PGM}' for FOP)"
-
-# FOP is noisy on stdout, and -q doesn't seem to help, so stuff that
-# garbage into /dev/null.
-${FOP_PGM} $@ | grep -v "\[ERROR\]"
-#${FOP_PGM} $@
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|