SGML for Windows NT: Setting up a free SGML/XML editing and publishing system on Windows/Cygwin | ||
---|---|---|
Prev | Next |
If you are familiar with Unix-style shells, you certainly appreciate their programming capabilities to simplify complex repetitive tasks. And you probably can figure out how to write shell scripts to publish SGML documents yourself. If you are new to Cygwin, you may want to have a look at the following example scripts. They can be executed in Bash, the default shell of Cygwin.
The Bash scripts below reduce the transformation of a DocBook document to any output format (dbjade) or to all of them (dbfullrelease) to a single command in your shell. I personally find this approach more convenient than the GUI-based approach with PSGML-Jade, but you should compare both ways and decide for yourself.
I use these scripts for publishing my own SGML documents. They are certainly tailored to my needs, i.e. they don't do much more than I personally need, but they should be useful for others as is or with minor modifications. Both scripts have a short "user-customizable" section at the beginning to adapt the script to your SGMLNT installation. You should modify these variables if necessary.
Both of the following scripts should run on any platform. If they run in Cygwin Bash, the scripts take care of the conversion of Unix paths to DOS paths where appropriate.
Note: As Cygwin also contains make, you can of course also write a Makefile for each project and automatically build the targets from changed sources.