aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2018-03-07 19:00:39 +0100
committerMihai Moldovan <ionic@ionic.de>2018-03-07 19:00:39 +0100
commit3352cfaba74091b1780a29ffb915a448a1f510a4 (patch)
tree27fd193d69f3eaa5e1d76f51eae645b11c550c96
parent76e7d26b8b9efd6811970968d8b03d63b8aaf338 (diff)
downloadnx-libs-3352cfaba74091b1780a29ffb915a448a1f510a4.tar.gz
nx-libs-3352cfaba74091b1780a29ffb915a448a1f510a4.tar.bz2
nx-libs-3352cfaba74091b1780a29ffb915a448a1f510a4.zip
nxcomp{,shad}/configure.ac: replace versionating non-portable sed construct with hopefully more portable awk construct.
-rw-r--r--nxcomp/configure.ac2
-rw-r--r--nxcompshad/configure.ac2
2 files changed, 2 insertions, 2 deletions
diff --git a/nxcomp/configure.ac b/nxcomp/configure.ac
index da0832123..a1839c719 100644
--- a/nxcomp/configure.ac
+++ b/nxcomp/configure.ac
@@ -22,7 +22,7 @@ AC_PROG_LIBTOOL
COMP_VERSION=nxcomp_version
AC_SUBST([COMP_VERSION])
-LT_COMP_VERSION=[`echo $COMP_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_COMP_VERSION])
# Silence warning: ar: 'u' modifier ignored since 'D' is the default
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