From 68639e990d98f1dcb869b81346d06e6d23b202f1 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 24 Feb 2026 22:12:24 -0500 Subject: [PATCH] sage.sh: posix sh (or dash, at least) compatibility hack --- sage.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sage.sh b/sage.sh index 4ce68e4..bca684b 100644 --- a/sage.sh +++ b/sage.sh @@ -22,7 +22,7 @@ alias sage="python -m sage.cli" # # https://github.com/mesonbuild/meson-python/issues/820 # -sage-meson-setup() { +sage_meson_setup() { meson setup \ --python.bytecompile=-1 \ --python.install-env=prefix \ @@ -36,8 +36,13 @@ sage-meson-setup() { # A "meson install" command that passes --only-changed by default. # This makes a huge difference in the install time as we have >= 5k # files to install. -sage-meson-install() { +sage_meson_install() { meson install \ --only-changed \ "${@}" } + +# I prefer the hyphens, but they aren't valid in a sh function name +# (dash objects to them). +alias sage-meson-setup=sage_meson_setup +alias sage-meson-install=sage_meson_install -- 2.51.0