summaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/update.sh b/update.sh
index c7a0b03..67a6148 100755
--- a/update.sh
+++ b/update.sh
@@ -1,10 +1,10 @@
-#!/bin/bash
+#!/bin/bash -e
# Copy binaries
for b in bin/*; do
file=`basename $b`
- # Don't copy symlinks like clang++
- if test -h $b; then
+ # Don't copy symlinks like clang++ or directories
+ if test -h $b || test -d $b; then
echo Skipping $file
else
echo Copying $file
@@ -17,8 +17,8 @@ done
echo Copying static analyzer tools
rm -rf tools/*
mkdir -p tools
-cp -ar ${ANDROID_BUILD_TOP}/external/clang/tools/scan-build tools
-cp -ar ${ANDROID_BUILD_TOP}/external/clang/tools/scan-view tools
+cp -a ${ANDROID_BUILD_TOP}/external/clang/tools/scan-build tools
+cp -a ${ANDROID_BUILD_TOP}/external/clang/tools/scan-view tools
# Copy libraries
echo Copying libc++.dylib