Commit 3352cfab authored by Mihai Moldovan's avatar Mihai Moldovan

nxcomp{,shad}/configure.ac: replace versionating non-portable sed construct with…

nxcomp{,shad}/configure.ac: replace versionating non-portable sed construct with hopefully more portable awk construct.
parent 76e7d26b
...@@ -22,7 +22,7 @@ AC_PROG_LIBTOOL ...@@ -22,7 +22,7 @@ AC_PROG_LIBTOOL
COMP_VERSION=nxcomp_version COMP_VERSION=nxcomp_version
AC_SUBST([COMP_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]) AC_SUBST([LT_COMP_VERSION])
# Silence warning: ar: 'u' modifier ignored since 'D' is the default # Silence warning: ar: 'u' modifier ignored since 'D' is the default
......
...@@ -22,7 +22,7 @@ AC_PROG_LIBTOOL ...@@ -22,7 +22,7 @@ AC_PROG_LIBTOOL
COMPSHAD_VERSION=nxcompshad_version COMPSHAD_VERSION=nxcompshad_version
AC_SUBST([COMPSHAD_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]) AC_SUBST([LT_COMPSHAD_VERSION])
# Silence warning: ar: 'u' modifier ignored since 'D' is the default # Silence warning: ar: 'u' modifier ignored since 'D' is the default
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment