Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
271f7029
Commit
271f7029
authored
11 years ago
by
Michael Reuter
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/feature/9323_cpack_generalization'
parents
49fdc157
f3a1a216
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Mantid/Build/CMake/CPackLinuxSetup.cmake
+8
-17
8 additions, 17 deletions
Code/Mantid/Build/CMake/CPackLinuxSetup.cmake
Code/Mantid/Build/CMake/DetermineLinuxDistro.cmake
+8
-1
8 additions, 1 deletion
Code/Mantid/Build/CMake/DetermineLinuxDistro.cmake
with
16 additions
and
18 deletions
Code/Mantid/Build/CMake/CPackLinuxSetup.cmake
+
8
−
17
View file @
271f7029
...
...
@@ -30,24 +30,15 @@ if ( ${UNIX_DIST} MATCHES "RedHatEnterprise" OR ${UNIX_DIST} MATCHES "Fedora" OR
if
(
RPMBUILD_CMD
)
set
(
CPACK_GENERATOR
"RPM"
)
set
(
CPACK_RPM_PACKAGE_ARCHITECTURE
"
${
CMAKE_SYSTEM_PROCESSOR
}
"
)
set
(
CPACK_RPM_PACKAGE_URL
"http://www.mantidproject.org"
)
# reset the release name to include the RHEL version if known
if
(
${
UNIX_CODENAME
}
MATCHES
"Tikanga"
)
set
(
CPACK_RPM_PACKAGE_RELEASE
"
${
CPACK_RPM_PACKAGE_RELEASE
}
.el5"
)
elseif
(
${
UNIX_CODENAME
}
MATCHES
"Santiago"
)
set
(
CPACK_RPM_PACKAGE_RELEASE
"
${
CPACK_RPM_PACKAGE_RELEASE
}
.el6"
)
elseif
(
${
UNIX_CODENAME
}
MATCHES
"Laughlin"
)
set
(
CPACK_RPM_PACKAGE_RELEASE
"
${
CPACK_RPM_PACKAGE_RELEASE
}
.fc14"
)
elseif
(
${
UNIX_CODENAME
}
MATCHES
"Lovelock"
)
set
(
CPACK_RPM_PACKAGE_RELEASE
"
${
CPACK_RPM_PACKAGE_RELEASE
}
.fc15"
)
elseif
(
${
UNIX_CODENAME
}
MATCHES
"Verne"
)
set
(
CPACK_RPM_PACKAGE_RELEASE
"
${
CPACK_RPM_PACKAGE_RELEASE
}
.fc16"
)
elseif
(
${
UNIX_CODENAME
}
MATCHES
"BeefyMiracle"
)
set
(
CPACK_RPM_PACKAGE_RELEASE
"
${
CPACK_RPM_PACKAGE_RELEASE
}
.fc17"
)
elseif
(
${
UNIX_CODENAME
}
MATCHES
"SphericalCow"
)
set
(
CPACK_RPM_PACKAGE_RELEASE
"
${
CPACK_RPM_PACKAGE_RELEASE
}
.fc18"
)
elseif
(
${
UNIX_CODENAME
}
MATCHES
"Heisenbug"
)
set
(
CPACK_RPM_PACKAGE_RELEASE
"
${
CPACK_RPM_PACKAGE_RELEASE
}
.fc20"
)
endif
(
${
UNIX_CODENAME
}
MATCHES
"Tikanga"
)
if
(
${
UNIX_DIST
}
MATCHES
"RedHatEnterprise"
)
string
(
REGEX REPLACE
"^([0-9])
\\
.[0-9]+$"
"
\\
1"
TEMP
${
UNIX_RELEASE
}
)
set
(
CPACK_RPM_PACKAGE_RELEASE
"1.el
${
TEMP
}
"
)
elseif
(
${
UNIX_DIST
}
MATCHES
"Fedora"
)
set
(
CPACK_RPM_PACKAGE_RELEASE
"1.fc
${
UNIX_RELEASE
}
"
)
endif
(
${
UNIX_DIST
}
MATCHES
"RedHatEnterprise"
)
# If CPACK_SET_DESTDIR is ON then the Prefix doesn't get put in the spec file
if
(
CPACK_SET_DESTDIR
)
...
...
This diff is collapsed.
Click to expand it.
Code/Mantid/Build/CMake/DetermineLinuxDistro.cmake
+
8
−
1
View file @
271f7029
...
...
@@ -21,8 +21,15 @@ if ( LSB_CMD )
# Make Scientific Linux and CentOS look like RHEL6
string
(
REGEX REPLACE
"Carbon"
"Santiago"
UNIX_DIST
${
UNIX_DIST
}
)
string
(
REGEX REPLACE
"Final"
"Santiago"
UNIX_DIST
${
UNIX_DIST
}
)
# get the release
execute_process
(
COMMAND
${
LSB_CMD
}
-r
OUTPUT_VARIABLE UNIX_RELEASE
OUTPUT_STRIP_TRAILING_WHITESPACE
)
string
(
REGEX REPLACE
"Release:"
""
UNIX_RELEASE
${
UNIX_RELEASE
}
)
string
(
STRIP
${
UNIX_RELEASE
}
UNIX_RELEASE
)
else
(
LSB_CMD
)
set
(
UNIX_DIST
""
)
set
(
UNIX_CODENAME
""
)
set
(
UNIX_RELEASE
""
)
endif
(
LSB_CMD
)
message
(
STATUS
" DIST:
${
UNIX_DIST
}
CODENAME:
${
UNIX_CODENAME
}
"
)
message
(
STATUS
" DIST:
${
UNIX_DIST
}
${
UNIX_RELEASE
}
CODENAME:
${
UNIX_CODENAME
}
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment