blob: a26b25a8b2f1c64d4e9319d54a32555410a96c90 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#!/bin/sh
# This script will create the docbook-xsl catalog and will add entries to xml catalog.
# WARNING: If you change this script, be sure to check pkg-deinstall.in!
#
# Based on http://xmlsoft.org/buildDocBookCatalog file.
#
# in vi/vim grab VERSIONS string with command:
# !!echo -n "VERSIONS='current ";fetch -qo - http://cvs.sf.net/cgi-bin/viewcvs.cgi/docbook/xsl/VERSION|sed -nE 's/.*Version (.*) released./\1/gp'|sort|sed -e '1,3d'|paste -sd ' ' -|tr \\n \'
#
# -- Rui Lopes <rui@ruilopes.com>
XMLCATMGR=@XMLCATMGR@
CATALOG_PORTS_XML=@CATALOG_PORTS_XML@
XSL_DIR=${PKG_PREFIX}/@INSTDIR@
CATALOG_XSL=${XSL_DIR}/catalog
if [ "$2" != "POST-INSTALL" ]; then
exit 0
fi
VERSIONS='current 1.39 1.40 1.41 1.42 1.43 1.44 1.45 1.46 1.47 1.48 1.49 1.50.0 1.50.1-EXP 1.50.1-EXP2 1.51.0 1.51.1 1.52.0 1.52.1 1.52.2 1.53.0 1.54.0 1.54.1 1.55.0 1.56.0 1.56.1 1.57.0 1.58.0 1.58.1 1.59.0 1.59.1 1.59.2 1.60.0 1.60.1 1.60.1 1.61.0 1.61.1 1.61.2 1.61.3'
if [ ! -f ${CATALOG_XSL} ]; then
${XMLCATMGR} -c "${CATALOG_XSL}" create
fi
for version in ${VERSIONS}
do
${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteSystem \
http://docbook.sourceforge.net/release/xsl/$version \
"file://${XSL_DIR}"
${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteURI \
http://docbook.sourceforge.net/release/xsl/$version \
"file://${XSL_DIR}"
done
${XMLCATMGR} -c "${CATALOG_PORTS_XML}" add delegateSystem \
http://docbook.sourceforge.net/release/xsl/ \
"file://${CATALOG_XSL}"
${XMLCATMGR} -c "${CATALOG_PORTS_XML}" add delegateURI \
http://docbook.sourceforge.net/release/xsl/ \
"file://${CATALOG_XSL}"
|