Files
qt6-migration-pipeline/specs/external/lts_astyle_helper-1.0/astyle_lts
T

26 lines
753 B
Bash
Executable File

#!/bin/sh
# Handler for one indirect fire single object
# $Id$
# $HeadURL$
# $Author$
if [ $# -lt 1 ] ; then
echo "Invalid arg count -> $0 <dir> --> fixup all *.cpp and *.h files found in this directory"
echo "Invalid arg count -> $0 <file1> <file2> --> only handle the files given"
exit 1
fi
if [ -d $1 ]; then
filelist=`ls -1 $1/*.cpp $1/*.h || true`;
else
filelist="$@";
fi
for f in $filelist ; do
astyle -n -Q -A1 --remove-brackets --indent=spaces=2 --indent-labels --pad-oper --unpad-paren --pad-header --keep-one-line-statements --keep-one-line-blocks --convert-tabs --indent-preprocessor --align-pointer=name --max-instatement-indent=120 $f
normalize --modify $f
done
echo "done - now run 'svn diff $f' to review the changes"