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(-)