+++ /dev/null
-#!/bin/bash\r
-# vim: number\r
-\r
-# docbook-xsl-update - Update environment to latest docbook-xsl snapshot\r
-# $Id: docbook-xsl-update 6565 2007-01-29 23:00:16Z xmldoc $\r
-\r
-if [ -z $DOCBOOK_MIRROR ]; then\r
- myhost=docbook.xml-doc.org:5873;\r
-else\r
- myhost=$DOCBOOK_MIRROR;\r
-fi\r
-\r
-mydir=$(readlink -f $(dirname $0))\r
-mydocbook_xsl_base=$(readlink -f $(dirname $0)/../..)\r
-\r
-if [ ! -f $mydocbook_xsl_base/VERSION ]; then \r
- cat <<- EOF\r
-$(basename $0): error: not in snapshot directory. Stopping.\r
-\r
-The $(basename $0) script must be installed within its original\r
-location in the tools/bin directory in the docbook-xsl distribution.\r
-EOF\r
- exit 1\r
-fi\r
-\r
-usage="Usage:\r
-\r
- $(basename $0) [-h HOST[:PORT]]\r
-\r
- -h HOST[:PORT] Specifies the rsync host and port number to use.\r
- If not specified, uses the value of the\r
- \$DOCBOOK_MIRROR environment variable. If that\r
- environment variable is not specified, defaults\r
- to a hard-coded value.\r
-\r
-"\r
-\r
-while getopts "h:" opt; do\r
- case $opt in\r
- h ) myhost=$OPTARG ;;\r
- \? ) printf "$usage"\r
- printf "$opts_admon"\r
- exit 1 ;;\r
- esac\r
-done\r
-\r
-shift $(($OPTIND - 1))\r
-\r
-if [ -z $myhost ]; then\r
- myhost=$DOCBOOK_MIRROR\r
-fi\r
-\r
-rsync -auv rsync://$myhost/xsl $mydocbook_xsl_base\r