From 3352cfaba74091b1780a29ffb915a448a1f510a4 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Wed, 7 Mar 2018 19:00:39 +0100 Subject: nxcomp{,shad}/configure.ac: replace versionating non-portable sed construct with hopefully more portable awk construct. --- nxcompshad/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nxcompshad') diff --git a/nxcompshad/configure.ac b/nxcompshad/configure.ac index 485dd6fc8..3f2b6abae 100644 --- a/nxcompshad/configure.ac +++ b/nxcompshad/configure.ac @@ -22,7 +22,7 @@ AC_PROG_LIBTOOL COMPSHAD_VERSION=nxcompshad_version AC_SUBST([COMPSHAD_VERSION]) -LT_COMPSHAD_VERSION=[`echo $COMPSHAD_VERSION | sed -E -e 's/^([0-9]+\.[0-9]+\.[0-9]+).*$/\1/' -e 's/\./:/g'`] +LT_COMP_VERSION=["$(printf '%s\n' "${COMP_VERSION}" | awk -F '.' '/^[0-9]+\.[0-9]+\.[0-9]+.*$/ { print $1 ":" $2 ":" $3; }')"] AC_SUBST([LT_COMPSHAD_VERSION]) # Silence warning: ar: 'u' modifier ignored since 'D' is the default -- cgit v1.2.3