From: Michael Orlitzky Date: Wed, 25 Feb 2026 03:12:24 +0000 (-0500) Subject: sage.sh: posix sh (or dash, at least) compatibility hack X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=68639e990d98f1dcb869b81346d06e6d23b202f1;p=shell.d.git sage.sh: posix sh (or dash, at least) compatibility hack --- 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