From dee37a84ae65ba8bd1e0dab6132955bbc195fa57 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 21 Nov 2010 16:22:46 +0000 Subject: --- scripts/astyle.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/astyle.sh (limited to 'scripts/astyle.sh') diff --git a/scripts/astyle.sh b/scripts/astyle.sh new file mode 100755 index 0000000..b9dbc45 --- /dev/null +++ b/scripts/astyle.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# The yChat Project (2004) +# +# This uses "astyle" to format C++ code into a specific code style! + +for f in h cpp tmpl +do + for i in `find . -name "*.$f"` + do + echo $i + astyle --style=ansi -s2 $i + rm -f $i.orig + done +done -- cgit v1.2.3