| git.druid.rocks | index | druid520 | ports | ports/ | shells/ | mksh/ | del.sh |
ports/shells/mksh/del.sh
set -e
# deliberately does nothing -- same reasoning as languages/perl5,
# libcs/musl, coreutils/busybox, coreutils/sbase, build-tools/bmake,
# compilers/tcc, and every other self-referential critical tool in
# this tree: mksh is the SOLE %shell provider (TARGET_shell=shells/
# mksh) and /bin/sh's own real target -- add.sh's own build step
# ("sh Build.sh") needs a REAL, working /bin/sh to run at all. hit for
# real, hard: "mp update world" removed mksh first (this del.sh used
# to really delete $MP_PREFIX/bin/mksh and the /bin/sh symlink), then
# add.sh's own "sh Build.sh" line failed outright because the shell it
# needed to run itself no longer existed -- leaving the WHOLE system
# with no working /bin/sh at all until a rescue mksh binary was pulled
# from a throwaway container launched from the last published image.
# never again: leave the old, working copy alone; add.sh's own install
# step overwrites it in place only once the new build has actually
# succeeded.