summaryrefslogtreecommitdiff
path: root/scripts/astyle.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/astyle.sh')
-rwxr-xr-xscripts/astyle.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/astyle.sh b/scripts/astyle.sh
new file mode 100755
index 0000000..757364e
--- /dev/null
+++ b/scripts/astyle.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# The yChat Project (2004, 2005)
+#
+# 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