utils: use rmdir instead of rm to remove empty dirs

as suggested by Sven Verdoolaege <skimo-polly@kotnet.org>

llvm-svn: 168279
This commit is contained in:
Sebastian Pop 2012-11-18 04:34:31 +00:00
parent 3424550294
commit bea5a36b01
1 changed files with 2 additions and 2 deletions

View File

@ -67,9 +67,9 @@ then
echo :: Performing initial checkout
# Remove the existing CLooG and ISL dirs to avoid crashing older git versions.
cd ${CLOOG_DIR}/..
run rm -rf ${CLOOG_DIR}
run rmdir "${CLOOG_DIR}"
run git clone http://repo.or.cz/r/cloog.git ${CLOOG_DIR}
run rm -rf ${ISL_DIR}
run rmdir "${ISL_DIR}"
run git clone http://repo.or.cz/r/isl.git ${ISL_DIR}
fi