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