Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
OpenXG-RAN
Commits
513f0beb
Commit
513f0beb
authored
Sep 20, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parse xran version strings for Bronze, E, F
parent
645e9dd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
cmake_targets/tools/MODULES/Findxran.cmake
cmake_targets/tools/MODULES/Findxran.cmake
+9
-10
No files found.
cmake_targets/tools/MODULES/Findxran.cmake
View file @
513f0beb
...
...
@@ -101,17 +101,16 @@ endif()
file
(
STRINGS
${
xran_VERSION_FILE
}
xran_VERSION_LINE REGEX
"^#define[
\t
]+VERSIONX[
\t
]+
\"
[a-z_.0-9]+
\"
$"
)
string
(
REGEX REPLACE
"^#define[
\t
]+VERSIONX[
\t
]+
\"
([a-z_.0-9]+)
\"
$"
"
\\
1"
xran_VERSION_STRING
"
${
xran_VERSION_LINE
}
"
)
message
(
STATUS
"Found xran release
${
xran_VERSION_STRING
}
"
)
set
(
xran_VERSION
"NOTFOUND"
)
if
(
xran_VERSION_STRING STREQUAL
"oran_e_maintenance_release_v1.0"
)
set
(
xran_VERSION 5.1.0
)
elseif
(
xran_VERSION_STRING STREQUAL
"oran_e_maintenance_release_v1.1"
)
set
(
xran_VERSION 5.1.1
)
elseif
(
xran_VERSION_STRING STREQUAL
"oran_e_maintenance_release_v1.2"
)
set
(
xran_VERSION 5.1.2
)
elseif
(
xran_VERSION_STRING STREQUAL
"oran_e_maintenance_release_v1.3"
)
set
(
xran_VERSION 5.1.3
)
if
(
xran_VERSION_STRING MATCHES
"^oran_e_maintenance_release_v"
)
string
(
REGEX REPLACE
"oran_e_maintenance_release_v([0-9]+).([0-9]+)"
"5.
\\
1.
\\
2"
xran_VERSION
${
xran_VERSION_STRING
}
)
elseif
(
xran_VERSION_STRING MATCHES
"^oran_f_release_v"
)
string
(
REGEX REPLACE
"oran_f_release_v([0-9]+).([0-9]+)"
"6.
\\
1.
\\
2"
xran_VERSION
${
xran_VERSION_STRING
}
)
elseif
(
xran_VERSION_STRING MATCHES
"^oran_bronze_release_v"
)
string
(
REGEX REPLACE
"oran_bronze_release_v([0-9]+).([0-9]+)"
"2.
\\
1.
\\
2"
xran_VERSION
${
xran_VERSION_STRING
}
)
else
()
message
(
FATAL_ERROR
"unrecognized xran version string:
${
xran_VERSION_STRING
}
"
)
endif
()
message
(
STATUS
"Found xran release
${
xran_VERSION_STRING
}
(v
${
xran_VERSION
}
)"
)
unset
(
xran_VERSION_LINE
)
unset
(
xran_VERSION_STRING
)
unset
(
xran_VERSION_FILE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment