From d8e869f732e9fddb53781132b51916d810b0ec5b Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sun, 6 Feb 2022 12:32:18 +0100 Subject: Tweak Emacs build script Using an array makes it easier to add/comment out stuff. NB: Cannot compile --with-xwidgets on Tumbleweed right now, because the version requirement is too strict IIUC. I remember messing around with *FLAGS and compiling/running successfully, but that knowledge vanished along with some Git stash. --- .local/bin/emacs-build | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.local/bin/emacs-build b/.local/bin/emacs-build index 31a79ec..cc978e0 100755 --- a/.local/bin/emacs-build +++ b/.local/bin/emacs-build @@ -3,7 +3,11 @@ set -eux make="make -j$(nproc --all)" -configure_flags="--with-xwidgets --with-cairo --with-gconf" +configure_flags=( + --with-cairo + --with-gconf + --with-xinput2 +) if ! test -f Makefile then @@ -17,13 +21,13 @@ check-config () return 1 fi - local pattern='#define EMACS_CONFIG_OPTIONS "'${configure_flags}'"' + local pattern="#define EMACS_CONFIG_OPTIONS \"${configure_flags[@]}\"" grep "${pattern}" src/config.h } if ! check-config then - ./configure ${configure_flags} + ./configure "${configure_flags[@]}" fi ${make} "$@" -- cgit v1.2.3