summaryrefslogtreecommitdiffstats
path: root/dgbuilder/tools/format_xml.sh
blob: fbe368e1da457fe8b57cfc8a4d13add371d7cd05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
if [ "$#" != "1" ]
then
        echo "Usage: $0 xmlFileFullPath"
        exit
fi

if [ -z "$PROJECT_HOME" ]
then
        export PROJECT_HOME=$(pwd)/..
fi
if [ -e "$1" ]
then
	python3 $PROJECT_HOME/tools/formatXml.py "$1"
else
	echo "File $1 does not exist"
fi