Skip to content
Snippets Groups Projects
Commit 27f995fb authored by Christian Engwer's avatar Christian Engwer
Browse files

* Use POSIX awk instead of GNU extensions for darwin compatibility,

   see also http://www.opengroup.org/onlinepubs/009695399/utilities/awk.html
   
Credits go to Elias Pipping


[[Imported from SVN: r5296]]
parent a9990dcf
No related branches found
No related tags found
No related merge requests found
......@@ -38,9 +38,9 @@ AC_DEFUN([DUNE_PARSE_MODULE_VERSION],[
m4_pushdef([_DUNE_MODULE], [m4_toupper(_dune_module)])
_DUNE_MODULE[]_VERSION=_dune_version
_DUNE_MODULE[]_VERSION_MAJOR="`echo _dune_version | awk '{ split($[]0,s,"."); match(s[[1]],/[[[[:digit:]]]]*/,n); print n[[0]] }'`"
_DUNE_MODULE[]_VERSION_MINOR="`echo _dune_version | awk '{ split($[]0,s,"."); match(s[[2]],/[[[[:digit:]]]]*/,n); print n[[0]] }'`"
_DUNE_MODULE[]_VERSION_REVISION="`echo _dune_version | awk '{ split($[]0,s,"."); match(s[[3]],/[[[[:digit:]]]]*/,n); print n[[0]] }'`"
_DUNE_MODULE[]_VERSION_MAJOR="`echo _dune_version | awk '{ split($[]0,s,"."); match(s[[1]],/[[[[:digit:]]]]*/); print substr(s[[1]],RSTART,RLENGTH) }'`"
_DUNE_MODULE[]_VERSION_MINOR="`echo _dune_version | awk '{ split($[]0,s,"."); match(s[[2]],/[[[[:digit:]]]]*/); print substr(s[[2]],RSTART,RLENGTH) }'`"
_DUNE_MODULE[]_VERSION_REVISION="`echo _dune_version | awk '{ split($[]0,s,"."); match(s[[3]],/[[[[:digit:]]]]*/); print substr(s[[3]],RSTART,RLENGTH) }'`"
if test x$_DUNE_MODULE[]_VERSION_REVISION = x ; then
_DUNE_MODULE[]_VERSION_REVISION=0
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment