From 0939258be1e7bcf780814d8667f7bf6ca684f673 Mon Sep 17 00:00:00 2001 From: defanor Date: Thu, 26 Apr 2018 02:17:17 +0300 Subject: Add authoring tools --- tools/xml-to-html.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 tools/xml-to-html.sh (limited to 'tools/xml-to-html.sh') 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" -- cgit v1.2.3