]> granicus.if.org Git - neomutt/commit
Use the directory where the version.sh script is located as the
authorAaron Schrab <aaron@schrab.com>
Fri, 28 Dec 2012 04:33:25 +0000 (20:33 -0800)
committerAaron Schrab <aaron@schrab.com>
Fri, 28 Dec 2012 04:33:25 +0000 (20:33 -0800)
commitf6169d702b9ea8acf847560e102319e52371f797
tree6b5ab307f5ea083f6495608902e7c6cac3b8db9c
parent7b75043bbb89bd9c2e67f0c9838c04bcbcc51b1c
Use the directory where the version.sh script is located as the
directory where it is run.  Since this will be run in a separate shell
anyway, there's no need to worry about changing current directory.

This eliminates the need for the caller to specify where the source
directory is located, and doesn't require that the code take special
care to use the appropriate directory.  The fallback method of using
`cat VERSION` was broken in this respect, it would not work when run
from a different directory.
---
 configure.ac |    2 +-
 version.sh   |    7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)
configure.ac
version.sh