commit d8e869f732e9fddb53781132b51916d810b0ec5b
parent ea80a4a9890c82a9c2fba5cea4e2f08d952c987a
Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com>
Date: Sun, 6 Feb 2022 12:32:18 +0100
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.
Diffstat:
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git 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} "$@"