certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/scripts SystemSpecificInformations.cmake


From: certi-cvs
Subject: [certi-cvs] certi/scripts SystemSpecificInformations.cmake
Date: Sat, 16 Jan 2010 21:45:01 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      10/01/16 21:45:01

Modified files:
        scripts        : SystemSpecificInformations.cmake 

Log message:
        Add openSUSE case

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/scripts/SystemSpecificInformations.cmake?cvsroot=certi&r1=1.4&r2=1.5

Patches:
Index: SystemSpecificInformations.cmake
===================================================================
RCS file: /sources/certi/certi/scripts/SystemSpecificInformations.cmake,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- SystemSpecificInformations.cmake    16 Jan 2010 16:34:29 -0000      1.4
+++ SystemSpecificInformations.cmake    16 Jan 2010 21:45:01 -0000      1.5
@@ -95,8 +95,12 @@
         set(LINUX_NAME "Debian_${CMAKE_MATCH_1}")
         string(REPLACE "/" "_" LINUX_NAME ${LINUX_NAME})        
       endif(LINUX_ISSUE MATCHES "Debian")      
-      # SuSE case
-      # TODO
+      # Open SuSE case
+      if(LINUX_ISSUE MATCHES "SUSE")
+        string(REGEX MATCH "SUSE  ([0-9]+\\.[0-9]+)" SUSE "${LINUX_ISSUE}")
+        set(LINUX_NAME "openSUSE_${CMAKE_MATCH_1}")
+        string(REPLACE "/" "_" LINUX_NAME ${LINUX_NAME})        
+      endif(LINUX_ISSUE MATCHES "SUSE")
       # Mandriva case
       # TODO      
       if(LINUX_NAME) 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]