Menu

[r151]: / trunk / test / do  Maximize  Restore  History

Download this file

28 lines (25 with data), 885 Bytes

#!/bin/sh

rootdir=`pwd`
MAKEFILE=$HOME/local/cpplapack/makefiles/Makefile

for i in `find * -type d | grep -v .svn`; do
    if [ -d $i ]; then
        echo "################ Enter into $i/ ################"
        cd $i
        if [ -f SUCCEEDED ]; then
            echo "======== Skipping cause already succeeded ========"
        elif [ -f main.cpp ]; then
            echo "======== Making ========" &&\
                make -f $MAKEFILE debug &&\
                echo "======== Executing ./A.OUT ========" &&\
                valgrind ./A.OUT &&\
                make -f $MAKEFILE fullclean
            if [ $? != 0 ]; then exit 1; fi
            echo "======== Succeeded ========"
            touch SUCCEEDED
        else
            echo "======== No main.cpp ========"
        fi
        cd $rootdir
        echo "################ Exit  from $i/ ################"
    fi
done
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.