From 799489de17c13e9bcdbf5f14eb470e74590e9d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 13 Mar 2020 09:42:43 +0100 Subject: Use the source package date or the source git repository date instead of the current build date. The use of a stable date is necessary to achieve reproducible builds. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updating release information in docbook entities is done directly in CMake rules. Entities will no longer be duplicated during repeated updates. Signed-off-by: Slávek Banko --- tdelfeditor/CMakeLists.txt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'tdelfeditor') diff --git a/tdelfeditor/CMakeLists.txt b/tdelfeditor/CMakeLists.txt index 19f195555..07cd731d2 100644 --- a/tdelfeditor/CMakeLists.txt +++ b/tdelfeditor/CMakeLists.txt @@ -35,14 +35,8 @@ tde_add_executable( tdelfeditor ##### embed scm data into important libraries #### -# look for SCM data if present -if( EXISTS "${CMAKE_SOURCE_DIR}/.tdescmmodule" ) - file( STRINGS "${CMAKE_SOURCE_DIR}/.tdescmmodule" TDE_SCM_MODULE_NAME ) -endif( EXISTS "${CMAKE_SOURCE_DIR}/.tdescmmodule" ) -if( EXISTS "${CMAKE_SOURCE_DIR}/.tdescmrevision" ) - file( STRINGS "${CMAKE_SOURCE_DIR}/.tdescmrevision" TDE_SCM_MODULE_REVISION ) -endif( EXISTS "${CMAKE_SOURCE_DIR}/.tdescmrevision" ) - +# read source metadata +tde_read_src_metadata() tde_curdatetime( scm_embed_metadata_datetime ) if( NOT "${TDE_SCM_MODULE_NAME}" STREQUAL "" ) @@ -138,4 +132,4 @@ if( NOT "${TDE_SCM_MODULE_NAME}" STREQUAL "" ) COMMENT "Storing SCM metadata in tdehtml/libtdehtml.so" ) endif( ) -endif( ) \ No newline at end of file +endif( ) -- cgit v1.2.1