[svnbook commit] r1129 - trunk/src/tools/bin

cmpilato at red-bean.com cmpilato at red-bean.com
Sun Feb 27 01:03:07 CST 2005


Author: cmpilato
Date: Sun Feb 27 01:03:06 2005
New Revision: 1129

Modified:
   trunk/src/tools/bin/run-fop.sh
Log:
* src/tools/bin/run-fop.sh
  Teach this script how to find fop using ${HOME}/.foprc (if present).


Modified: trunk/src/tools/bin/run-fop.sh
==============================================================================
--- trunk/src/tools/bin/run-fop.sh	(original)
+++ trunk/src/tools/bin/run-fop.sh	Sun Feb 27 01:03:06 2005
@@ -4,10 +4,9 @@
 #
 # 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'.
+# This script is meant to be invoked by book translation Makefiles.
+# The first argument is the top of the book translation directory, and
+# the remaining arguments are passed along to `fop'.
 
 BOOK_TOP=${1}
 
@@ -18,6 +17,11 @@
 
 shift
 
+# If the user has a .foprc, source it.
+if [ -f ${HOME}/.foprc ]; then
+  . ${HOME}/.foprc
+fi
+
 # The fop of last resort.
 DESPERATION_FOP_DIR=${BOOK_TOP}/tools/fop
 DESPERATION_FOP_PGM=${DESPERATION_FOP_DIR}/fop.sh
@@ -34,6 +38,7 @@
 # different systems seem to package it different ways.
 SAVED_IFS=${IFS}
 IFS=:
+PATH=${PATH}:${FOP_HOME}
 for dir in ${PATH}; do
    if [ -x ${dir}/fop -a "${FOP_PGM}X" = X ]; then
      FOP_PGM=${dir}/fop



More information about the svnbook-dev mailing list