diff options
Diffstat (limited to 'misc/xml/format.sh')
-rwxr-xr-x | misc/xml/format.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/misc/xml/format.sh b/misc/xml/format.sh new file mode 100755 index 0000000..c522f44 --- /dev/null +++ b/misc/xml/format.sh @@ -0,0 +1,8 @@ +#! /bin/bash + +if [ -z "$1" ]; then + echo "Usage: $0 [ xml_file ]" + exit 0 +fi + +cat $1 | xmllint -format - | xsltproc format.xsl - |