diff options
author | Pierre Labastie <pieere@linuxfromscratch.org> | 2020-03-13 09:20:45 +0000 |
---|---|---|
committer | Pierre Labastie <pieere@linuxfromscratch.org> | 2020-03-13 09:20:45 +0000 |
commit | 2e524f93fc03353e6fb05333d8041505948959eb (patch) | |
tree | 0e2f8a60e47c994d49152b300f0d698a7eb29c4f /stylesheets/lfs-xsl/docbook-xsl-1.78.1/tools/bin/docbook-xsl-update | |
parent | cc98817b6165e5307c1fc38328cdc2a1cc2de257 (diff) |
Since LFS started using docbook-1.78.1, there is a lot of unused data
in the stylesheet directory. Basically, a whole docbook-stylesheet is
there, while we need only fo and xhtml (+ some common dirs). Each time
we checkout the repo, we have to download this whole thing, which is by
far the biggest part of the repo (~33 M). By removing unused cruft,
this could be down to ~12 M.
Of course, it would be even better to remove completely the stylesheets
and use host ones (repo size down to 2M). but let's do this first, it is
easier :)
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11778 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-1.78.1/tools/bin/docbook-xsl-update')
-rwxr-xr-x | stylesheets/lfs-xsl/docbook-xsl-1.78.1/tools/bin/docbook-xsl-update | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/tools/bin/docbook-xsl-update b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/tools/bin/docbook-xsl-update deleted file mode 100755 index aba0016e1..000000000 --- a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/tools/bin/docbook-xsl-update +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# vim: number - -# docbook-xsl-update - Update environment to latest docbook-xsl snapshot -# $Id: docbook-xsl-update 9628 2012-10-20 23:52:01Z dcramer $ - -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.xsl ]; 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 |