X-Git-Url: https://gerrit.onap.org/r/gitweb?p=ccsdk%2Fdistribution.git;a=blobdiff_plain;f=dgbuilder%2Ftools%2Fformat_xml.sh;fp=dgbuilder%2Ftools%2Fformat_xml.sh;h=c66153edd98c8452afe3946f0f56dd3bcc00a30d;hp=0000000000000000000000000000000000000000;hb=d1569975bb18f4359fac18aa98f55b69c248a3ad;hpb=a016ea661ff5767a3539734c4c07ef974a6e4614 diff --git a/dgbuilder/tools/format_xml.sh b/dgbuilder/tools/format_xml.sh new file mode 100755 index 00000000..c66153ed --- /dev/null +++ b/dgbuilder/tools/format_xml.sh @@ -0,0 +1,16 @@ +if [ "$#" != "1" ] +then + echo "Usage: $0 xmlFileFullPath" + exit +fi + +if [ -z "$PROJECT_HOME" ] +then + export PROJECT_HOME=$(pwd)/.. +fi +if [ -e "$1" ] +then + python $PROJECT_HOME/tools/formatXml.py $1 +else + echo "File $1 does not exist" +fi