summaryrefslogtreecommitdiff
path: root/scripts/astyle.sh
blob: 4376887ca9d8912b0c44356a8de72436f8e8e574 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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=gnu $i
  rm -f $i.orig
 done
done