@ -38,23 +38,31 @@ if( NOT TDE_RELEASE_ENTITIES )
if ( TDE_SCM_MODULE_DATETIME )
set ( TDE_RELEASE_DATE "${TDE_SCM_MODULE_DATETIME}" )
else ( )
if ( ${ CMAKE_SYSTEM_NAME } MATCHES "BSD" )
set ( GNU_FIND_EXECUTABLE "gfind" )
else ( )
set ( GNU_FIND_EXECUTABLE "find" )
endif ( )
execute_process (
C O M M A N D f i n d $ { T D E V E R S I O N _ F I L E } - p r i n t f " % T m / % T e / % T Y "
C O M M A N D ${ G N U _ F I N D _ E X E C U T A B L E } $ { T D E V E R S I O N _ F I L E } - p r i n t f " % T m / % T e / % T Y "
O U T P U T _ V A R I A B L E T D E _ R E L E A S E _ D A T E
O U T P U T _ S T R I P _ T R A I L I N G _ W H I T E S P A C E
)
endif ( )
endif ( )
execute_process (
C O M M A N D d a t e + 2 0 1 0 - % Y - d " $ { T D E _ R E L E A S E _ D A T E } "
O U T P U T _ V A R I A B L E T D E _ R E L E A S E _ C O P Y R I G H T
O U T P U T _ S T R I P _ T R A I L I N G _ W H I T E S P A C E
)
execute_process (
C O M M A N D d a t e + % B \ % e , \ % Y - d " $ { T D E _ R E L E A S E _ D A T E } "
O U T P U T _ V A R I A B L E T D E _ R E L E A S E _ D A T E
O U T P U T _ S T R I P _ T R A I L I N G _ W H I T E S P A C E
)
string ( REGEX REPLACE "^([0-9]+)/([0-9]+)*/([0-9]+).*" "2010-\\3"
T D E _ R E L E A S E _ C O P Y R I G H T " $ { T D E _ R E L E A S E _ D A T E } " )
string ( REGEX REPLACE "^([0-9]+)/([0-9]+)*/([0-9]+).*" "\\1"
_ r e l e a s e _ m o n t h _ n u m " $ { T D E _ R E L E A S E _ D A T E } " )
math ( EXPR _release_month_index "${_release_month_num}-1" )
set ( _month_names "January;February;March;April;May;June;July;August;September;October;November;December" )
list ( GET _month_names ${ _release_month_index } _release_month_name )
string ( REGEX REPLACE
" ^ ( [ 0 - 9 ] + ) / ( [ 0 - 9 ] + ) * / ( [ 0 - 9 ] + ) . * "
" $ { _ r e l e a s e _ m o n t h _ n a m e } \ \ 2 , \ \ 3 "
T D E _ R E L E A S E _ D A T E " $ { T D E _ R E L E A S E _ D A T E } " )
# u p d a t e e n t i t i e s
message ( STATUS " Updating ${ ENTITIES_FILE }