This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Setting the MacOS X shell environment for Fink DocBookpackages.
- From: Sasha Zucker <szucker at mac dot com>
- To: Josh Kuperman <josh at ssimr dot com>
- Cc: Fink Users <fink-users at lists dot sourceforge dot net>,Docbook Apps <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 28 Mar 2002 13:46:16 -0800
- Subject: DOCBOOK-APPS: Setting the MacOS X shell environment for Fink DocBookpackages.
Here's a working example of some lines that can be included in an
initialization file after installing the DocBook packages with Fink on Mac
OS X. Note that I use the bash shell, so Cshellers out there will have to
rewrite things a bit.
#########################
SGML_SHARE=/sw/share/sgml
XML_SHARE=/sw/share/xml
JADE_HOME=/sw/share/sgml/openjade-1.3
export SGML_CATALOG_FILES=$SGML_SHARE/catalog
export SP_CHARSET_FIXED='YES'
# Uncomment following line if you are using DocBook XML.
# export SP_ENCODING='XML'
#stylesheet locations
NWALSH_DSSSL=$SGML_SHARE/dsssl/docbook-dsssl-nwalsh
export DSL_HTML=$NWALSH_DSSSL/html/docbook.dsl
export DSL_PRINT=$NWALSH_DSSSL/print/docbook.dsl
export LDP_HTML=$NWALSH_DSSSL/html/ldp.dsl\#html
export LDP_PRINT=$NWALSH_DSSSL/print/ldp.dsl\#print
# If working with XML DocBook, add XML_SOC to the end of SGML_CATALOG_FILES.
# Remember to use onsgmls with -wxml option.
export XML_DCL=$JADE_HOME/pubtext/xml.dcl
export XML_SOC=$JADE_HOME/pubtext/xml.soc
# Some useful aliases:
#
# Setup environment for validating xml with onsgmls
alias setupval="export SGML_CATALOG_FILES=$SGML_CATALOG_FILES:$XML_SOC"
# Validate xml; reset your environment before using openjade
alias onxmls="setupval; /sw/bin/onsgmls -sv -wxml "
# Generate output.
# Multiple HTML files in "chunks."
alias genhtml="openjade -t sgml -d $LDP_HTML $XML_DCL "
# Single big HTML file. Usage:
# genhtmlbig filename.xml > filename.html
alias genhtmlbig="openjade -t sgml -V nochunks -d $LDP_HTML $XML_DCL "
# RTF format for use with Microsoft Word.
alias genrtf="openjade -t rtf -d $LDP_PRINT $XML_DCL "
#########################
good luck,
Sasha