[X2Go-Commits] [nx-libs] 01/01: nxcomp{, shad}/configure.ac: replace versionating non-portable sed construct with hopefully more portable awk construct.
git-admin at x2go.org
git-admin at x2go.org
Wed Mar 7 19:01:29 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit 3352cfaba74091b1780a29ffb915a448a1f510a4
Author: Mihai Moldovan <ionic at ionic.de>
Date: Wed Mar 7 19:00:39 2018 +0100
nxcomp{,shad}/configure.ac: replace versionating non-portable sed construct with hopefully more portable awk construct.
---
nxcomp/configure.ac | 2 +-
nxcompshad/configure.ac | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/nxcomp/configure.ac b/nxcomp/configure.ac
index da08321..a1839c7 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 485dd6f..3f2b6ab 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
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list