-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun
23 lines (21 loc) · 910 Bytes
/
run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# http://docbook.sourceforge.net/release/website/current/example/index.html
PUBLIC_HTML=~/public_html
HTDOCS=$PUBLIC_HTML
WEBSITE=/usr/share/xml/docbook/stylesheet/nwalsh/website
XML_CATALOG_FILES=/usr/share/xml/docbook/stylesheet/nwalsh/catalog.xml \
xsltproc --output autolayout.xml ${WEBSITE}/autolayout.xsl layout.xml
#xsltproc --stringparam output-root $HTDOCS $WEBSITE/chunk-tabular.xsl autolayout.xml
xsltproc --stringparam output-root $HTDOCS \
--stringparam chunker.output.encoding utf-8 \
template.xsl autolayout.xml
# --stringparam collect.xref.targets yes
if [ ! -d ${HTDOCS}/images ]; then
mkdir -p ${HTDOCS}/images
fi
#cp -r Docbook/Website/graphics $HTDOCS
#rm -rf $HTDOCS/graphics/.svn
cp stylesheet.css $HTDOCS
rsync -au --delete --exclude=.svn graphics ${HTDOCS}/
rsync -au --delete --exclude=.svn images ${HTDOCS}/
rsync -au --delete --exclude=.svn html/* ${HTDOCS}/