summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-10 10:05:00 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-10 10:05:00 (EST)
commit04b66fd111ce2c58b13bb4ecc411a3d5f79633fe (patch)
tree8b0bafb1ecf45048f74feabe20007d355b2f3667 /build
parent5d39fa9c2225b7041ba282a9b496a0b2a108ca47 (diff)
Move documentation into binutils-doc data dir.
Diffstat (limited to 'build')
-rwxr-xr-xbuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/build b/build
index 4be17b9..6cb4c16 100755
--- a/build
+++ b/build
@@ -92,6 +92,14 @@ install: build
echo "/usr/lib/$(OPK_HOST_ARCH)/$${target}" \
>>"binutils-$${target}.data/etc/ld.so.conf.d/bfd_$(OPK_HOST_ARCH)_$${target}"; \
done
+ # Move documentation into binutils-doc data directory.
+ mkdir -p 'binutils-doc.data/usr'
+ for target in $$(cat ../targets); do \
+ if [ ! -d 'binutils-doc.data/usr/share' ]; then \
+ mv "binutils-$${target}.data/usr/share" 'binutils-doc.data/usr' || \
+ exit 1; \
+ fi; \
+ done
# Post-process and install everything.
for target in $$(cat ../targets); do \
oh-fixperms -d "binutils-$${target}.data" && \