From b4d81b07474a4454f399d2cea8e95e4bba0bb491 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 23 Nov 2024 12:14:23 +0100 Subject: [PATCH] [docker] exit in case of build failure --- docker/alpine-static/mes_static.sh | 8 ++++---- docker/alpine-static/mes_static_js.sh | 8 ++++---- docker/djgpp/mes_djgpp.sh | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docker/alpine-static/mes_static.sh b/docker/alpine-static/mes_static.sh index d008cb9be..d3931936b 100755 --- a/docker/alpine-static/mes_static.sh +++ b/docker/alpine-static/mes_static.sh @@ -56,10 +56,10 @@ meson setup /root/tmp/builddir \ -Dx=false \ -Dxbel=true \ -Dzlib=true \ --Dzstd=true +-Dzstd=true || exit 1 -meson compile -C /root/tmp/builddir +meson compile -C /root/tmp/builddir || exit 2 -strip /root/tmp/builddir/src/elinks +strip /root/tmp/builddir/src/elinks || exit 3 -upx /root/tmp/builddir/src/elinks +upx /root/tmp/builddir/src/elinks || exit 4 diff --git a/docker/alpine-static/mes_static_js.sh b/docker/alpine-static/mes_static_js.sh index 3ed513d31..62e764cab 100755 --- a/docker/alpine-static/mes_static_js.sh +++ b/docker/alpine-static/mes_static_js.sh @@ -53,10 +53,10 @@ meson setup /root/tmp/builddir_js \ -Dx=false \ -Dxbel=true \ -Dzlib=true \ --Dzstd=true +-Dzstd=true || exit 1 -meson compile -j $(($(nproc) - 1)) -C /root/tmp/builddir_js +meson compile -j $(($(nproc) - 1)) -C /root/tmp/builddir_js || exit 2 -strip /root/tmp/builddir_js/src/elinks +strip /root/tmp/builddir_js/src/elinks || exit 3 -upx /root/tmp/builddir_js/src/elinks +upx /root/tmp/builddir_js/src/elinks || exit 4 diff --git a/docker/djgpp/mes_djgpp.sh b/docker/djgpp/mes_djgpp.sh index b2290b9a1..2e863b97d 100755 --- a/docker/djgpp/mes_djgpp.sh +++ b/docker/djgpp/mes_djgpp.sh @@ -64,12 +64,12 @@ meson setup /tmp/builddir --cross-file cross/linux-djgpp.txt \ -Dx=false \ -Dxbel=true \ -Dzlib=true \ --Dzstd=false +-Dzstd=false || exit 1 -meson compile -C /tmp/builddir +meson compile -C /tmp/builddir || exit 2 -i586-pc-msdosdjgpp-strip /tmp/builddir/src/elinks.exe +i586-pc-msdosdjgpp-strip /tmp/builddir/src/elinks.exe || exit 3 -upx /tmp/builddir/src/elinks.exe +upx /tmp/builddir/src/elinks.exe || exit 4 #cp -a /tmp/builddir/src/elinks.exe ~/.dosemu/drive_c/ELINKS/src/