From ec1034a03a8f929ba9040f49f66fb5f5ef8ba8a1 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Tue, 17 Jun 2014 16:09:10 +0200 Subject: [PATCH] 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. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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],