#!/bin/bash DESTDIR=~/sites/www.hinterlands.org/html/gllugfaq/ VERSION=`/usr/bin/perl ./version.pl`; mkdir -p ${DESTDIR}/images sed "s?FAQ_VERSION?${VERSION}?g" gllugfaq.xml > gllugfaq_withversion.xml xsltproc --stringparam faqversion ${VERSION} --output ${DESTDIR}/gllugfaq.html gllugfaq.xsl gllugfaq_withversion.xml docbook2pdf gllugfaq_withversion.xml mv gllugfaq_withversion.pdf ${DESTDIR}/gllugfaq.pdf cp images/*png ${DESTDIR}/images cp styles.css ${DESTDIR} # Clean up output HTML a little. ./cleanup.pl ${DESTDIR}/index.html mv ${DESTDIR}/index.html.cleaned ${DESTDIR}/index.html rm gllugfaq_withversion.xml