utils: remove the isl directory after cloning cloog
authorSebastian Pop <spop@codeaurora.org>
Sat, 17 Nov 2012 04:57:41 +0000 (04:57 +0000)
committerSebastian Pop <spop@codeaurora.org>
Sat, 17 Nov 2012 04:57:41 +0000 (04:57 +0000)
This fixes my previous commit, thanks to "Dmitry N. Mikushin"
<maemarcus@gmail.com>

llvm-svn: 168252

polly/utils/checkout_cloog.sh

index 27c977a..3bf06a9 100755 (executable)
@@ -66,8 +66,10 @@ if [ ${IS_GIT} -eq 0 ]
 then
   echo :: Performing initial checkout
   # Remove the existing CLooG and ISL dirs to avoid crashing older git versions.
-  run rm -rf ${CLOOG_DIR} ${ISL_DIR}
+  cd ${CLOOG_DIR}/..
+  run rm -rf ${CLOOG_DIR}
   run git clone http://repo.or.cz/r/cloog.git ${CLOOG_DIR}
+  run rm -rf ${ISL_DIR}
   run git clone http://repo.or.cz/r/isl.git ${ISL_DIR}
 fi