summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-11 15:27:56 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-11 15:27:56 (EST)
commit92a8fa4fbe9c0f3f115b2a08fd0dd2094f3c1d65 (patch)
tree8100033c0ff26b2a388418861a94a17072c594b1
parent3c52cd9b13fda17a1351a1a473a1ae4d6253ff09 (diff)
Fix handling of man and info files.
* Remove them from all binutils-<target> packages, not just one of the packages. * Give man files target-independent names.
-rwxr-xr-xbuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/build b/build
index aada73c..3f2cf43 100755
--- a/build
+++ b/build
@@ -112,6 +112,13 @@ install: build
if [ ! -d 'binutils-doc.data/usr/share' ]; then \
mv "binutils-$${target}.data/usr/share" 'binutils-doc.data/usr' || \
exit 1; \
+ for file in 'binutils-doc.data/usr/share/man/man1/'*; do \
+ mv "$${file}" "$${file%/*}/$${file##*/$${target}-}" || \
+ exit 1; \
+ done; \
+ else \
+ rm -Rf "binutils-$${target}.data/usr/share" || \
+ exit 1; \
fi; \
done
# Move BFD development files into libbfd-dev-* data directory.