diff options
author | Michael Biebl <biebl@debian.org> | 2014-06-17 16:09:10 +0200 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2014-06-17 11:33:50 -0500 |
commit | ec1034a03a8f929ba9040f49f66fb5f5ef8ba8a1 (patch) | |
tree | b22631649457a73fd5151b0c9c03c182865c60fe | |
parent | d71ec13123a0acc80bce9ed92bf48aad93c527ee (diff) | |
download | NetworkManager-ec1034a03a8f929ba9040f49f66fb5f5ef8ba8a1.tar.gz |
build: fix bashisms in configure.ac
[[ && ]] is a bashism, so use [ ] && [ ] instead.
Also use readlink -f instead of realpath, since the latter is not
guaranteed to be installed.
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7c51886a50..6d1885ea1b 100644 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,7 @@ m4_define([nm_micro_version], [11]) m4_define([nm_nano_version], [0]) m4_define([nm_version], [nm_major_version.nm_minor_version.nm_micro_version.nm_nano_version]) -m4_define([nm_git_sha], [m4_esyscmd([ ( [[ -d ./.git/ && "$(realpath ./.git/)" = "$(realpath "$(git rev-parse --git-dir 2>/dev/null)" 2>/dev/null)" ]] && git rev-parse --verify -q HEAD 2>/dev/null ) || true ])]) +m4_define([nm_git_sha], [m4_esyscmd([ ( [ -d ./.git/ ] && [ "$(readlink -f ./.git/)" = "$(readlink -f "$(git rev-parse --git-dir 2>/dev/null)" 2>/dev/null)" ] && git rev-parse --verify -q HEAD 2>/dev/null ) || true ])]) AC_INIT([NetworkManager], [nm_version], [http://bugzilla.gnome.org/enter_bug.cgi?product=NetworkManager], |