summaryrefslogtreecommitdiff
path: root/ycurses/scripts/astyle.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ycurses/scripts/astyle.sh')
-rwxr-xr-xycurses/scripts/astyle.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/ycurses/scripts/astyle.sh b/ycurses/scripts/astyle.sh
new file mode 100755
index 0000000..f986cde
--- /dev/null
+++ b/ycurses/scripts/astyle.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+# The ycurses 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