diff --git a/scripts/chapter8/8.53-meson.sh b/scripts/chapter8/8.53-meson.sh new file mode 100644 index 0000000..535beeb --- /dev/null +++ b/scripts/chapter8/8.53-meson.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +cd /sources +tar xf meson-0.63.1.tar.gz +cd meson-0.63.1 + +pip3 wheel -w dist --no-build-isolation --no-deps $PWD + +if [ $? -ne 0 ] +then + exit 1 +fi + +pip3 install --no-index --find-links dist meson +install -vDm644 data/shell-completions/bash/meson /usr/share/bash-completion/completions/meson +install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/_meson + +cd /sources +rm -rf meson-0.63.1 diff --git a/scripts/main.sh b/scripts/main.sh index 0c69c4e..ac4993f 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1174,3 +1174,15 @@ then stop_script "chapter8/8.52-ninja.sh" fi +# Chapter 8.53 +# ============ +echo "Building meson" +su -c "bash $SCRIPT/chapter8/8.53-meson.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.53-meson.sh" +fi +