]> git.notmuchmail.org Git - notmuch/commitdiff
configure: replace $(realpath emacs) with $(cd emacs && pwd -P)
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 20 Oct 2020 06:57:11 +0000 (09:57 +0300)
committerDavid Bremner <david@tethera.net>
Wed, 21 Oct 2020 10:01:37 +0000 (07:01 -0300)
For portability; the realpath command (e.g. from GNU coreutils)
is not so common outside Linux systems.

The "$(cd emacs && pwd -P)" replaces that realpath(1) execution
suitably in this context (using just bash(1) builtins).

configure

index 40e8b2559e86b40985ef2c6dc142eb0104c3ddb6..cfa9c09bd3dc4c186c163c6b223b56598789ba3e 100755 (executable)
--- a/configure
+++ b/configure
@@ -1536,7 +1536,7 @@ EOF
     if [ $WITH_PYTHON_DOCS = "1" ]; then
         echo "tags.add('WITH_PYTHON')"
     fi
-    printf "rsti_dir = '%s'\n" $(realpath emacs)
+    printf "rsti_dir = '%s'\n" "$(cd emacs && pwd -P)"
 } > sphinx.config
 
 # Finally, after everything configured, inform the user how to continue.