summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-02-19 20:02:00 (EST)
committer P. J. McDermott <pjm@nac.net>2014-02-19 20:02:00 (EST)
commit8bb6431fe1740f5f7fffaa8214a9b4e930754432 (patch)
tree7ea5f348907a8e748df6f72ac6270d9a741eaf87 /build
parentceef092839b88b388a77190ba3bd0a331e5ff9e7 (diff)
Unify alternatives lists into one file.
This file is used at build time and install/remove time.
Diffstat (limited to 'build')
-rwxr-xr-xbuild17
1 files changed, 6 insertions, 11 deletions
diff --git a/build b/build
index 80d4b74..c50860e 100755
--- a/build
+++ b/build
@@ -31,18 +31,13 @@ install:
oh-fixperms
oh-strip
chmod u+s dest/bin/busybox
- set -e; for path in \
- /usr/bin/awk \
- /usr/bin/ar \
- /usr/bin/strings \
- /usr/bin/clear \
- /usr/bin/reset \
- /usr/bin/mkpasswd \
- ; do \
- if [ -e "dest/$${path}" ]; then \
- mv "dest/$${path}" "dest/$${path}.busybox"; \
+ set -e; while read link name prio; do \
+ if [ -e "dest/$${link}" ]; then \
+ mv "dest/$${link}" "dest/$${link}.busybox"; \
fi; \
- done
+ done <../alternatives
+ mkdir -p dest/usr/share/busybox
+ cp ../alternatives dest/usr/share/busybox
set -e; $(config_enabled); $(install_init_script); \
if config_enabled INIT; then \
install -d -m 0755 dest/etc; \