Skip to content

Commit

Permalink
Add translation for SL/CentOS codenames -> RHEL. re #7021
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcampbell committed May 7, 2013
1 parent 6ce1863 commit 52dd4f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/Mantid/Build/CMake/DetermineLinuxDistro.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ if ( LSB_CMD )
string ( STRIP ${UNIX_DIST} UNIX_DIST )
string ( REGEX REPLACE "RedHatEnterpriseClient" "RedHatEnterprise" UNIX_DIST ${UNIX_DIST} )
string ( REGEX REPLACE "RedHatEnterpriseWorkstation" "RedHatEnterprise" UNIX_DIST ${UNIX_DIST} )
# Make Scientific Linux and CentOS look like RHEL6
string ( REGEX REPLACE "Scientific" "RedHatEnterprise" UNIX_DIST ${UNIX_DIST} )
string ( REGEX REPLACE "CentOS" "RedHatEnterprise" UNIX_DIST ${UNIX_DIST} )
# get the codename
Expand All @@ -17,6 +18,9 @@ if ( LSB_CMD )
OUTPUT_STRIP_TRAILING_WHITESPACE )
string ( REGEX REPLACE "Codename:" "" UNIX_CODENAME ${UNIX_CODENAME} )
string ( STRIP ${UNIX_CODENAME} UNIX_CODENAME )
# 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} )
else ( LSB_CMD )
set ( UNIX_DIST "" )
set ( UNIX_CODENAME "" )
Expand Down

0 comments on commit 52dd4f4

Please sign in to comment.