From da565df24d89df57bb1c8b5fc50a29b174cd807a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89der=20F=2E=20Zulian?= Date: Thu, 12 Apr 2018 23:20:10 +0200 Subject: [PATCH] Coding-style script improved --- utils/make_pretty.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/utils/make_pretty.sh b/utils/make_pretty.sh index 95adcbf2..f3a804b0 100755 --- a/utils/make_pretty.sh +++ b/utils/make_pretty.sh @@ -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