Re: bashisms in configure.ac and usage of realpath
- From: Dan Williams <dcbw redhat com>
- To: Michael Biebl <biebl debian org>
- Cc: networkmanager-list gnome org
- Subject: Re: bashisms in configure.ac and usage of realpath
- Date: Tue, 17 Jun 2014 11:43:04 -0500
On Tue, 2014-06-17 at 16:10 +0200, Michael Biebl wrote:
Hi,
running ./autogen.sh I get
sh: 1: [[: not found
during autoreconf. Culprit is
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
])])
[[ ]] is a bashism. Fixing that to use [ ] && [ ] I encounter another error:
sh: 1: realpath: not found
The realpath utility is not installed by default on Debian systems.
It would probably be better to use readlink -f here, since that is part
of coreutils and installed by default.
I'm not sure what the check is supposed to achieve, but the attached
patch fixes the errors for me.
Please review.
Pushed to git master and nm-0-9-10, thanks!
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]