Coding-style script improved
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user