summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2022-02-06 12:32:18 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2022-02-06 12:32:18 +0100
commitd8e869f732e9fddb53781132b51916d810b0ec5b (patch)
treeb21e1e470dfad28bd560b59966690a84432d9abd /.local
parentea80a4a9890c82a9c2fba5cea4e2f08d952c987a (diff)
downloaddotfiles-d8e869f732e9fddb53781132b51916d810b0ec5b.tar.xz
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 (limited to '.local')
-rwxr-xr-x.local/bin/emacs-build10
1 files 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} "$@"