Coding-style script improved
This commit is contained in:
@@ -33,14 +33,12 @@
|
|||||||
# Author: Éder F. Zulian
|
# Author: Éder F. Zulian
|
||||||
|
|
||||||
BASEDIR="$(pwd)/.."
|
BASEDIR="$(pwd)/.."
|
||||||
export ARTISTIC_STYLE_OPTIONS="$BASEDIR/DRAMSys/DRAMSys.astylerc"
|
|
||||||
EXCLUDEDIR="$BASEDIR/DRAMSys/library/src/common/third_party"
|
EXCLUDEDIR="$BASEDIR/DRAMSys/library/src/common/third_party"
|
||||||
OPT="--suffix=none --lineend=linux"
|
OPT="--suffix=none --lineend=linux"
|
||||||
|
|
||||||
|
export ARTISTIC_STYLE_OPTIONS="$BASEDIR/DRAMSys/DRAMSys.astylerc"
|
||||||
astyle --recursive "$BASEDIR/*.cpp" "$BASEDIR/*.h" --exclude=$EXCLUDEDIR $OPT
|
astyle --recursive "$BASEDIR/*.cpp" "$BASEDIR/*.h" --exclude=$EXCLUDEDIR $OPT
|
||||||
|
|
||||||
# if [ $? -ne 0 ] ; then read -sn1 -p "Error executing astyle!"; fi
|
if [ $? -ne 0 ]; then
|
||||||
|
read -sn1 -p "Error executing astyle!";
|
||||||
#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
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user