Sha256: 6785bc061d585d645cd76d14828928133433cdb329ccc694541f8321f424460a

Contents?: true

Size: 1.23 KB

Versions: 20

Compression:

Stored size: 1.23 KB

Contents

#!/bin/bash
# vim: number

# docbook-xsl-update - Update environment to latest docbook-xsl snapshot
# $Id: docbook-xsl-update 6565 2007-01-29 23:00:16Z xmldoc $

if [ -z $DOCBOOK_MIRROR ]; then
  myhost=docbook.xml-doc.org:5873;
else
  myhost=$DOCBOOK_MIRROR;
fi

mydir=$(readlink -f $(dirname $0))
mydocbook_xsl_base=$(readlink -f $(dirname $0)/../..)

if [ ! -f $mydocbook_xsl_base/VERSION ]; then 
  cat <<- EOF
$(basename $0): error: not in snapshot directory. Stopping.

The $(basename $0) script must be installed within its original
location in the tools/bin directory in the docbook-xsl distribution.
EOF
  exit 1
fi

usage="Usage:

  $(basename $0) [-h HOST[:PORT]]

  -h HOST[:PORT]  Specifies the rsync host and port number to use.
                  If not specified, uses the value of the
                  \$DOCBOOK_MIRROR environment variable. If that
                  environment variable is not specified, defaults
                  to a hard-coded value.

"

while getopts "h:" opt; do
  case $opt in
    h  ) myhost=$OPTARG ;;
    \? ) printf "$usage"
         printf "$opts_admon"
         exit 1 ;;
  esac
done

shift $(($OPTIND - 1))

if [ -z $myhost ]; then
  myhost=$DOCBOOK_MIRROR
fi

rsync -auv rsync://$myhost/xsl $mydocbook_xsl_base

Version data entries

20 entries across 20 versions & 5 rubygems

Version Path
git-scribe-qp-0.1.1 docbook-xsl/tools/bin/docbook-xsl-update
couchbase-git-scribe-0.1.1.2 docbook-xsl/tools/bin/docbook-xsl-update
couchbase-git-scribe-0.1.1.1 docbook-xsl/tools/bin/docbook-xsl-update
booky-0.0.4 lib/stylesheets/tools/bin/docbook-xsl-update
booky-0.0.3 lib/stylesheets/tools/bin/docbook-xsl-update
booky-0.0.2 lib/stylesheets/tools/bin/docbook-xsl-update
booky-0.0.1 lib/stylesheets/tools/bin/docbook-xsl-update
git-scribe-0.1.1 docbook-xsl/tools/bin/docbook-xsl-update
git-scribe-0.1.0 docbook-xsl/tools/bin/docbook-xsl-update
bookshop-0.0.4 lib/bookshop/generators/bookshop/app/tools/xsl/1.76.1/tools/bin/docbook-xsl-update
bookshop-0.0.3 lib/bookshop/generators/bookshop/app/tools/xsl/1.76.1/tools/bin/docbook-xsl-update
git-scribe-0.0.9 docbook-xsl/tools/bin/docbook-xsl-update
git-scribe-0.0.8 docbook-xsl/tools/bin/docbook-xsl-update
git-scribe-0.0.7 docbook-xsl/tools/bin/docbook-xsl-update
git-scribe-0.0.6 docbook-xsl/tools/bin/docbook-xsl-update
git-scribe-0.0.5 docbook-xsl/tools/bin/docbook-xsl-update
git-scribe-0.0.4 docbook-xsl/tools/bin/docbook-xsl-update
bookshop-0.0.2.1 lib/bookshop/generators/bookshop/project/tools/xsl/1.76.1/tools/bin/docbook-xsl-update
bookshop-0.0.2 lib/bookshop/generators/bookshop/project/tools/xsl/1.76.1/tools/bin/docbook-xsl-update
bookshop-0.0.1 lib/bookshop/generators/bookshop/project/tools/xsl/1.76.1/tools/bin/docbook-xsl-update