summaryrefslogtreecommitdiff
path: root/scripts/tidy
blob: 0cbd3e84fe318496453752fd958c37c882659dbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
#
# Tidy one XML file
#
if [ -z "$1" ]; then
	echo "Usage $0 <file to tidy>"
	exit
fi

if [ ! -r $1 ]; then
	echo "Cant find $1"
	exit
fi

xsltproc xslt/clean-entitydescriptor.xsl $1 > $1.c && mv $1.c $1