From b8fc9817a392dffb4cf2d1a86ce1be998af4bc94 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Tue, 17 Jun 2014 16:09:10 +0200 Subject: [PATCH] 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 e5044d4..00af5b8 100644 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,7 @@ m4_define([nm_micro_version], [9]) m4_define([nm_nano_version], [95]) 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], -- 2.0.0