add cloc back to run list, and control with EPSDB=1
@@ -23,7 +23,12 @@ echo " A non-zero exit code means a failure occured."
echo "************************************************************************************"
#Loop over all directories and run the check script
-for directory in ./fortran hip openmp/; do
+cloc=""
+if [ "$EPSDB" != "1" ]; then
+ CLOC=cloc
+fi
+
+for directory in ./fortran hip openmp $CLOC/; do
(cd "$directory" && path=$(pwd) && base=$(basename $path)
script=check_$base.sh
./$script
@@ -31,7 +36,7 @@ for directory in ./fortran hip openmp/; do
)
done
echo -e "$ORG"FINAL RESULTS:"$BLK"
-for directory in ./*/; do
+for directory in fortran hip openmp $CLOC/; do
(cd "$directory" && path=$(pwd) && base=$(basename $path)
cat check-$base.txt
)
