diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-08-23 19:04:03 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-08-23 19:04:03 +0400 |
commit | 09a397afea8541fcd84f398945609eed3dc95803 (patch) | |
tree | e31865c2caabdc352b0f0d1f50fad74501b69309 | |
parent | 6c1bffd10a1e5e27072bfbd8b936a8a61635dcf0 (diff) | |
download | llvm-toolchain-3.5-09a397afea8541fcd84f398945609eed3dc95803.tar.gz |
rm fails if compiler-rt/clang_linux/ is empty
-rwxr-xr-x | debian/rules | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules index 5d68d33..cff7980 100755 --- a/debian/rules +++ b/debian/rules @@ -287,8 +287,9 @@ override_dh_auto_install: rm -f libclang.so # Remove artefact (where compiler-rt is built) - if test -d $(TARGET_BUILD)/tools/clang/runtime/compiler-rt/clang_linux; then \ - cd $(TARGET_BUILD)/tools/clang/runtime/compiler-rt/clang_linux && rm -rf $$(find . -mindepth 2 -maxdepth 2 -type d) && rm -rf $$(find -empty) && rm -rf */.dir; \ + if ls $(TARGET_BUILD)/tools/clang/runtime/compiler-rt/clang_linux/* 2>&1 >/dev/null; then \ + cd $(TARGET_BUILD)/tools/clang/runtime/compiler-rt/clang_linux && \ + rm -rf $$(find . -mindepth 2 -maxdepth 2 -type d) && rm -rf $$(find -empty) && rm -rf */.dir; \ fi mkdir -p $(CURDIR)/debian/clang-$(LLVM_VERSION)/usr/bin/ |