[rtems commit] Support pasring - in a version string

Chris Johns chrisj at rtems.org
Wed Dec 11 15:57:39 UTC 2019


Module:    rtems
Branch:    master
Commit:    86c70e71f95dc9cfdbbe7824520c8bc0955e8161
Changeset: http://git.rtems.org/rtems/commit/?id=86c70e71f95dc9cfdbbe7824520c8bc0955e8161

Author:    Chris Johns <chrisj at rtems.org>
Date:      Thu Dec 12 02:43:51 2019 +1100

Support pasring - in a version string

Closes #3839

---

 cpukit/configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/configure.ac b/cpukit/configure.ac
index 1db9b04..34b94a0 100644
--- a/cpukit/configure.ac
+++ b/cpukit/configure.ac
@@ -138,7 +138,7 @@ fi
 
 rtems_major=`echo _RTEMS_VERSION | sed "s/\..*//"`
 rtems_minor=`echo _RTEMS_VERSION | sed "s/[[0-9]][[0-9]]*\.//;s/\..*//"`
-rtems_revision=`echo _RTEMS_VERSION | sed "s/[[0-9]][[0-9]]*\.//;s/[[0-9]][[0-9]]*\.//;s/\..*//"`
+rtems_revision=`echo _RTEMS_VERSION | sed "s/[[0-9]][[0-9]]*\.//;s/[[0-9]][[0-9]]*\.//;s/[[\.\-]].*//"`
 
 _RTEMS_CPUOPT_INIT
 



More information about the vc mailing list