Coding-style script improved

This commit is contained in:
Éder F. Zulian
2018-04-12 23:20:10 +02:00
parent ad51dcfdb1
commit da565df24d

View File

@@ -33,14 +33,12 @@
# Author: Éder F. Zulian
BASEDIR="$(pwd)/.."
export ARTISTIC_STYLE_OPTIONS="$BASEDIR/DRAMSys/DRAMSys.astylerc"
EXCLUDEDIR="$BASEDIR/DRAMSys/library/src/common/third_party"
OPT="--suffix=none --lineend=linux"
export ARTISTIC_STYLE_OPTIONS="$BASEDIR/DRAMSys/DRAMSys.astylerc"
astyle --recursive "$BASEDIR/*.cpp" "$BASEDIR/*.h" --exclude=$EXCLUDEDIR $OPT
# if [ $? -ne 0 ] ; then read -sn1 -p "Error executing astyle!"; fi
#astyle --recursive "$BASEDIR/*.cpp" --exclude="$BASEDIR/DRAMSys/library/src/common/third_party/DRAMPower $BASEDIR/DRAMSys/library/src/common/third_party/json $BASEDIR/DRAMSys/library/src/common/third_party/tinyxml2" --suffix=none
if [ $? -ne 0 ]; then
read -sn1 -p "Error executing astyle!";
fi