From 2bba3b4c9dcfe72395135a2f772ea412d3fc1163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 16 Oct 2014 06:38:18 +0200 Subject: [PATCH] runastyle: updated script --- runastyle | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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