4
# docbook-xsl-update - Update environment to latest docbook-xsl snapshot
5
# $Id: docbook-xsl-update 6565 2007-01-29 23:00:16Z xmldoc $
7
if [ -z $DOCBOOK_MIRROR ]; then
8
myhost=docbook.xml-doc.org:5873;
10
myhost=$DOCBOOK_MIRROR;
13
mydir=$(readlink -f $(dirname $0))
14
mydocbook_xsl_base=$(readlink -f $(dirname $0)/../..)
16
if [ ! -f $mydocbook_xsl_base/VERSION ]; then
18
$(basename $0): error: not in snapshot directory. Stopping.
20
The $(basename $0) script must be installed within its original
21
location in the tools/bin directory in the docbook-xsl distribution.
28
$(basename $0) [-h HOST[:PORT]]
30
-h HOST[:PORT] Specifies the rsync host and port number to use.
31
If not specified, uses the value of the
32
\$DOCBOOK_MIRROR environment variable. If that
33
environment variable is not specified, defaults
34
to a hard-coded value.
38
while getopts "h:" opt; do
47
shift $(($OPTIND - 1))
49
if [ -z $myhost ]; then
50
myhost=$DOCBOOK_MIRROR
53
rsync -auv rsync://$myhost/xsl $mydocbook_xsl_base