diff options
Diffstat (limited to 'yhttpd/scripts/astyle.sh')
| -rwxr-xr-x | yhttpd/scripts/astyle.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/yhttpd/scripts/astyle.sh b/yhttpd/scripts/astyle.sh new file mode 100755 index 0000000..8f67195 --- /dev/null +++ b/yhttpd/scripts/astyle.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# The yhttpd 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 |
