summaryrefslogtreecommitdiffstats
path: root/misc/xml/format.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-09-24 04:28:45 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-09-24 04:28:45 +0200
commit08a01723af9cd52c078d5ca6c38c34d375b39fa0 (patch)
tree6eadea9c67f4bb56a9e4ee09f4982efaf61deece /misc/xml/format.sh
parent924adedb2928f5657c6668f606dbb3294b3c45da (diff)
parentae7f83a7948d8c3760f8019899a45e6ec90c2c6a (diff)
downloadpcitool-08a01723af9cd52c078d5ca6c38c34d375b39fa0.tar.gz
pcitool-08a01723af9cd52c078d5ca6c38c34d375b39fa0.tar.bz2
pcitool-08a01723af9cd52c078d5ca6c38c34d375b39fa0.tar.xz
pcitool-08a01723af9cd52c078d5ca6c38c34d375b39fa0.zip
Finalyze XML support and provide initial support for views (only descriptions so far)
Diffstat (limited to 'misc/xml/format.sh')
-rwxr-xr-xmisc/xml/format.sh8
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 -