summaryrefslogtreecommitdiffstats
path: root/tdelfeditor
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-03-13 09:42:43 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-03-15 16:55:27 +0100
commit799489de17c13e9bcdbf5f14eb470e74590e9d3f (patch)
tree9d08dc77258b225bf9d61e003c93264b722c0bf2 /tdelfeditor
parent922e81bf4548dcaf96b4e6b4dcfd90f3390a76e5 (diff)
downloadtdelibs-799489de17c13e9bcdbf5f14eb470e74590e9d3f.tar.gz
tdelibs-799489de17c13e9bcdbf5f14eb470e74590e9d3f.zip
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. 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 <slavek.banko@axis.cz>
Diffstat (limited to 'tdelfeditor')
-rw-r--r--tdelfeditor/CMakeLists.txt12
1 files changed, 3 insertions, 9 deletions
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( )