]> git.evergreen-ils.org Git - working/Evergreen.git/blob - stylesheets/evergreen_docbook_files/docbook-xsl-1.75.2/tools/bin/docbook-xsl-update
Capitalized the start of a sentence in the bucket section of cataloging.
[working/Evergreen.git] / stylesheets / evergreen_docbook_files / docbook-xsl-1.75.2 / tools / bin / docbook-xsl-update
1 #!/bin/bash\r
2 # vim: number\r
3 \r
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
6 \r
7 if [ -z $DOCBOOK_MIRROR ]; then\r
8   myhost=docbook.xml-doc.org:5873;\r
9 else\r
10   myhost=$DOCBOOK_MIRROR;\r
11 fi\r
12 \r
13 mydir=$(readlink -f $(dirname $0))\r
14 mydocbook_xsl_base=$(readlink -f $(dirname $0)/../..)\r
15 \r
16 if [ ! -f $mydocbook_xsl_base/VERSION ]; then \r
17   cat <<- EOF\r
18 $(basename $0): error: not in snapshot directory. Stopping.\r
19 \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
22 EOF\r
23   exit 1\r
24 fi\r
25 \r
26 usage="Usage:\r
27 \r
28   $(basename $0) [-h HOST[:PORT]]\r
29 \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
35 \r
36 "\r
37 \r
38 while getopts "h:" opt; do\r
39   case $opt in\r
40     h  ) myhost=$OPTARG ;;\r
41     \? ) printf "$usage"\r
42          printf "$opts_admon"\r
43          exit 1 ;;\r
44   esac\r
45 done\r
46 \r
47 shift $(($OPTIND - 1))\r
48 \r
49 if [ -z $myhost ]; then\r
50   myhost=$DOCBOOK_MIRROR\r
51 fi\r
52 \r
53 rsync -auv rsync://$myhost/xsl $mydocbook_xsl_base\r