summaryrefslogtreecommitdiff
path: root/ycurses/scripts/astyle.sh
blob: f986cde0c2c94c8dc1d48975667e4e42cd8945a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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