diff options
author | Tobias Grosser <tobias@grosser.es> | 2014-12-02 21:04:20 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2014-12-02 21:04:20 +0000 |
commit | 4a69bea6c20a66d014f61ac44a32b9a18b48218c (patch) | |
tree | c29217a09a3ff7a0c01757a678f2fdd82c305f52 | |
parent | 6f1e96b4374bb27499f3479299640e89f77e3663 (diff) | |
download | llvm-4a69bea6c20a66d014f61ac44a32b9a18b48218c.zip llvm-4a69bea6c20a66d014f61ac44a32b9a18b48218c.tar.gz llvm-4a69bea6c20a66d014f61ac44a32b9a18b48218c.tar.bz2 |
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
-rwxr-xr-x | polly/utils/checkout_isl.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/polly/utils/checkout_isl.sh b/polly/utils/checkout_isl.sh index 2763d59b..df2115c 100755 --- a/polly/utils/checkout_isl.sh +++ b/polly/utils/checkout_isl.sh @@ -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 } |