diff options
Diffstat (limited to 'tools/xml-to-html.sh')
-rwxr-xr-x | tools/xml-to-html.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/xml-to-html.sh b/tools/xml-to-html.sh new file mode 100755 index 0000000..c05d749 --- /dev/null +++ b/tools/xml-to-html.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# Translates simplified documents from src/ + +BASEDIR=~/homepage +TOOLS="${BASEDIR}/tools" +SOURCES="${BASEDIR}/src" + +find "${SOURCES}" -name '*.xhtml' | + sed -e "sS^${SOURCES}SS" | + xargs -Ifile xsltproc -o "${BASEDIR}/file" \ + "${TOOLS}/xml-to-html.xsl" "${SOURCES}file" |