summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-08 01:36:20 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-08 19:18:07 (EST)
commite56ecddd0e81ae63727ec22223856484ed7da923 (patch)
tree3817ef9827e5a43951bab0fdd4e515b9ab078e6d /build
parent9ed4a97267bddd5f3e92fbb0dba4e4fd8b1c0060 (diff)
badblocks, e2fsprogs: u-a all the executables
Diffstat (limited to 'build')
-rwxr-xr-xbuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/build b/build
index d2e1419..786f282 100755
--- a/build
+++ b/build
@@ -39,4 +39,14 @@ install: build
oh-fixperms
oh-strip
oh-installfiles
+ # update-alternatives all the executables:
+ for d in badblocks.data e2fsprogs.data; do \
+ mkdir -p "$${d}/usr/share/$${d%.data}/"; \
+ exec 3>"$${d}/usr/share/$${d%.data}/alternatives"; \
+ for f in $${d}/*bin/*; do \
+ mv "$${f}" "$${f}.e2p"; \
+ printf '%s\n' "$${f#*/}" 1>&3; \
+ done; \
+ exec 3>&-; \
+ done
oh-shlibdeps