[Top][All Lists]
[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 16:34:29 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 10/01/16 16:34:29
Modified files:
scripts : SystemSpecificInformations.cmake
Log message:
Update for Debian distros
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/scripts/SystemSpecificInformations.cmake?cvsroot=certi&r1=1.3&r2=1.4
Patches:
Index: SystemSpecificInformations.cmake
===================================================================
RCS file: /sources/certi/certi/scripts/SystemSpecificInformations.cmake,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- SystemSpecificInformations.cmake 15 Jan 2010 16:50:53 -0000 1.3
+++ SystemSpecificInformations.cmake 16 Jan 2010 16:34:29 -0000 1.4
@@ -90,7 +90,11 @@
set(LINUX_NAME "Ubuntu_${CMAKE_MATCH_1}")
endif(LINUX_ISSUE MATCHES "Ubuntu")
# Debian case
- # TODO
+ if(LINUX_ISSUE MATCHES "Debian")
+ string(REGEX MATCH "Debian .*ux ([a-zA-Z]*/?[a-zA-Z]*) .*" DEBIAN
"${LINUX_ISSUE}")
+ set(LINUX_NAME "Debian_${CMAKE_MATCH_1}")
+ string(REPLACE "/" "_" LINUX_NAME ${LINUX_NAME})
+ endif(LINUX_ISSUE MATCHES "Debian")
# SuSE case
# TODO
# Mandriva case