diff --git a/runastyle b/runastyle index f30e20be4..b52a8fffe 100755 --- a/runastyle +++ b/runastyle @@ -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