runastyle: updated script

This commit is contained in:
Daniel Marjamäki 2014-10-16 06:38:18 +02:00
parent ecd17d84fb
commit 2bba3b4c9d
1 changed files with 5 additions and 8 deletions

View File

@ -37,11 +37,8 @@ astyle $style $options --recursive "samples/*.cpp"
# format config files
# TODO: use other tool than xmllint? use tabs instead of spaces?
cat cfg/avr.cfg | xmllint --format - | tee cfg/avr.cfg > /dev/null
#cat cfg/gtk.cfg | xmllint --format - | tee cfg/gtk.cfg > /dev/null
cat cfg/linux.cfg | xmllint --format - | tee cfg/linux.cfg > /dev/null
cat cfg/posix.cfg | xmllint --format - | tee cfg/posix.cfg > /dev/null
cat cfg/qt.cfg | xmllint --format - | tee cfg/qt.cfg > /dev/null
cat cfg/sdl.cfg | xmllint --format - | tee cfg/sdl.cfg > /dev/null
cat cfg/std.cfg | xmllint --format - | tee cfg/std.cfg > /dev/null
cat cfg/windows.cfg | xmllint --format - | tee cfg/windows.cfg > /dev/null
for CFGFILE in cfg/*.cfg
do
xmllint --format -o ${CFGFILE}_ ${CFGFILE}
mv -f ${CFGFILE}_ ${CFGFILE}
done