summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
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