slashpackage

Snapshot of software for building static /package and /command.
git clone https://ccx.te2000.cz/git/slashpackage
Log | Files | Refs | Submodules

commit d1d5039c362ede44d7e021cda7662909ec1a0908
parent 0cdae366bb614b547cf8d614c9b214def9014dbf
Author: Jan Pobříslo <ccx@te2000.cz>
Date:   Wed, 26 Jul 2023 19:43:44 +0200

Make sure both s6-test and eltest work regardless of version

Diffstat:
Minstall-all | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/install-all b/install-all @@ -50,3 +50,17 @@ install_generic() { (cd mdevd && install_generic) || exit $? (cd s6-dns && install_generic) || exit $? (cd s6-networking && install_generic) || exit $? + +if ! test -e "$slashpackage/command/eltest"; then + if ! test -e "$slashpackage/command/s6-test"; then + printf >&2 "FATAL: neither eltest nor s6-test installed!" + exit 1 + fi + ln -s eltest "$slashpackage/command/s6-test" +elif ! test -e "$slashpackage/command/s6-test"; then + printf '%s\n' > "$slashpackage/command/s6-test" \ + "#!$slashpackage/command/execlineb -S0" \ + 'foreground { fdmove -c 1 2 echo "warning: s6-test is obsolete:" $@ }' \ + 'eltest $@' || exit $? + chmod +x "$slashpackage/command/s6-test" || exit $? +fi