commit 1e657544b2a5916fa2c51cb67ebe889d205af395 parent f5f48375869bb7b752d52f04be979ae5649d69a5 Author: Kévin Le Gouguec <kevin.legouguec@gmail.com> Date: Tue, 28 May 2019 14:26:20 +0200 Tweak Emacs build script some more Purely for cosmetic reasons. Diffstat:
| M | README.md | | | 2 | +- |
| M | personal/setup/emacs.md | | | 12 | +++++++----- |
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md @@ -1,5 +1,5 @@ # Peniblec's Memory Leaks -## still reachable: 8435 words in 19 pages +## still reachable: 8429 words in 19 pages Hi! I am a software engineer interested in [a bunch of things]. diff --git a/personal/setup/emacs.md b/personal/setup/emacs.md @@ -21,14 +21,16 @@ fi check-config () { - local define=$(grep EMACS_CONFIG_OPTIONS src/config.h) - local pattern='^#define EMACS_CONFIG_OPTIONS "(.+)"$' + if ! test -f src/config.h + then + return 1 + fi - [[ ${define} =~ ${pattern} ]] - test "${BASH_REMATCH[1]}" = "${CONFIGURE_FLAGS}" + local pattern='#define EMACS_CONFIG_OPTIONS "'${CONFIGURE_FLAGS}'"' + grep "${pattern}" src/config.h } -if ! test -f src/config.h || ! check-config +if ! check-config then ./configure ${CONFIGURE_FLAGS} fi