source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/tools/bin/docbook-xsl-update@ 1fa2099

multilib-10.1
Last change on this file since 1fa2099 was 1fa2099, checked in by Thomas Trepl <thomas@…>, 5 years ago

Initial creation of multilib branch

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11565 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100755
File size: 1.2 KB
Line 
1#!/bin/bash
2# vim: number
3
4# docbook-xsl-update - Update environment to latest docbook-xsl snapshot
5# $Id: docbook-xsl-update 9628 2012-10-20 23:52:01Z dcramer $
6
7if [ -z $DOCBOOK_MIRROR ]; then
8 myhost=docbook.xml-doc.org:5873;
9else
10 myhost=$DOCBOOK_MIRROR;
11fi
12
13mydir=$(readlink -f $(dirname $0))
14mydocbook_xsl_base=$(readlink -f $(dirname $0)/../..)
15
16if [ ! -f $mydocbook_xsl_base/VERSION.xsl ]; then
17 cat <<- EOF
18$(basename $0): error: not in snapshot directory. Stopping.
19
20The $(basename $0) script must be installed within its original
21location in the tools/bin directory in the docbook-xsl distribution.
22EOF
23 exit 1
24fi
25
26usage="Usage:
27
28 $(basename $0) [-h HOST[:PORT]]
29
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.
35
36"
37
38while getopts "h:" opt; do
39 case $opt in
40 h ) myhost=$OPTARG ;;
41 \? ) printf "$usage"
42 printf "$opts_admon"
43 exit 1 ;;
44 esac
45done
46
47shift $(($OPTIND - 1))
48
49if [ -z $myhost ]; then
50 myhost=$DOCBOOK_MIRROR
51fi
52
53rsync -auv rsync://$myhost/xsl $mydocbook_xsl_base
Note: See TracBrowser for help on using the repository browser.