#!/bin/bash echo "Do not use, it sucks..." exit # Note: As astyle seems to change the way of indenting things in detail in every release, # it makes no sense to use this frequently, cause it would require everyone to use the # same version of astyle, otherwise you get lots of modified files on every commit :( FILES=`find src/ -name \*.cpp && find src/ -name \*.h` # option -j would add { } to every if-statement, but not supported in <1.24 for i in $FILES; do astyle --style=ansi -A1 $i done