summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-12 18:33:03 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-12 18:33:03 (EST)
commitaf2f5123a5f80afa593b3c77bf45f45b40b0544f (patch)
tree1378701a20cc9c4c7a65507866b578e50d4b02dc
parent1e97bdef471197af3454cefe612624b90624326f (diff)
Remove useless leftover /usr/lib/lib directories.
-rwxr-xr-xbuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/build b/build
index 7c8e44c..3810319 100755
--- a/build
+++ b/build
@@ -99,7 +99,8 @@ install: build
find "binutils-$${target}.data/usr/lib" -name 'libiberty.a' \
-exec rm -f '{}' ';' && \
find "binutils-$${target}.data/usr/lib" -name '*.la' \
- -exec rm -f '{}' ';' || \
+ -exec rm -f '{}' ';' && \
+ rmdir "binutils-$${target}.data/usr/lib/lib" || \
exit 1; \
done
# Make symbolic links to native utilities.