checkout_isl: Do not fail in presence of an old CLooG checkout

This should help our buildbots and may also simplify life for other people.

llvm-svn: 223152
This commit is contained in:
Tobias Grosser 2014-12-02 21:04:20 +00:00
parent 6f1e96b437
commit 4a69bea6c2
1 changed files with 13 additions and 1 deletions

View File

@ -39,7 +39,19 @@ check_isl_directory() {
IS_GIT=0
else
echo ":: Existing git repo found"
IS_GIT=1
git log cc726006058136865f8c2f496d3df57b9f937ea5 2> /dev/null > /dev/null
OUT=$?
if [ $OUT -eq 0 ];then
echo ":: ISL repository found!"
IS_GIT=1
else
echo ":: Unknown repository found (CLooG?)!"
echo ":: Moving it to ${ISL_DIR}_old"
run mv ${ISL_DIR} ${ISL_DIR}_old
run mkdir ${ISL_DIR}
IS_GIT=0
fi
fi
}