source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/tools/bin/docbook-xsl-update@ 58675ce

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 12.2 12.2-rc1 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 58675ce was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 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.