summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-10 10:38:19 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-10 10:38:19 (EST)
commitf3b710e164b11a2b68e9dfef53726a7423ddd951 (patch)
tree6500fb99b54472320dd17243a05239c8d1b88188
parent3d89b2a99248f98b9b0acdde393dcdca1ece0aa2 (diff)
Fix repeat installations of libbfd-dev-* files.
-rwxr-xr-xbuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/build b/build
index 0c92044..f5f51c2 100755
--- a/build
+++ b/build
@@ -100,6 +100,10 @@ install: build
mv "binutils-$${target}.data/usr/share" 'binutils-doc.data/usr' || \
exit 1; \
fi; \
+ if [ -d "libbfd-dev-$${target}.data/usr" ]; then \
+ rm -Rf "libbfd-dev-$${target}.data/usr" || \
+ exit 1; \
+ fi; \
mkdir -p "libbfd-dev-$${target}.data/usr/lib/$(OPK_HOST_ARCH)/$${target}" && \
mv "binutils-$${target}.data/usr/include" \
"libbfd-dev-$${target}.data/usr" && \