From 457533034d1e0070323f9ca49a4bf8ddde5f882e Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 14 Jan 2019 10:34:54 +0100 Subject: initial import --- scripts/tidy | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/tidy (limited to 'scripts/tidy') diff --git a/scripts/tidy b/scripts/tidy new file mode 100755 index 0000000..0cbd3e8 --- /dev/null +++ b/scripts/tidy @@ -0,0 +1,16 @@ +#!/bin/bash +# +# Tidy one XML file +# +if [ -z "$1" ]; then + echo "Usage $0 " + exit +fi + +if [ ! -r $1 ]; then + echo "Cant find $1" + exit +fi + +xsltproc xslt/clean-entitydescriptor.xsl $1 > $1.c && mv $1.c $1 + -- cgit v1.2.3