Skip to content

Commit 708900f

Browse files
committed
fix run_astyle.sh
1 parent 4a8244f commit 708900f

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

scripts/run_astyle.sh.in

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
#! /bin/bash
2-
for module in core VTK itk;
3-
do
4-
for dir in examples include src tests;
5-
do
6-
if [ -d "@Statismo_SOURCE_DIR@/${module}/${dir}" ]; then
7-
for filetype in c cpp cxx h hpp hxx tpp txx;
8-
do
9-
list=`find ~/GITROOT/temp/statismo/modules/${module}/${dir} -name "*.${filetype}" -type f`
2+
pushd
3+
cd @statismo_SOURCE_DIR@/modules
4+
astyle --recursive --style=google *.c
5+
astyle --recursive --style=google *.cxx
6+
astyle --recursive --style=google *.cpp
107

11-
for f in ${list};
12-
do
13-
astyle --style=google $f;
14-
done
15-
done
16-
fi
17-
done
18-
done
8+
astyle --recursive --style=google *.h
9+
astyle --recursive --style=google *.hxx
10+
astyle --recursive --style=google *.hpp
11+
astyle --recursive --style=google *.txx
12+
astyle --recursive --style=google *.tpp
13+
popd

0 commit comments

Comments
 (0)