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-23 17:41:46 +0100
commitba556053e192e56cdb40be9319083a5e776b4c8b (patch)
treebd76d0299c8ad1d22d09ad279e5f39376899fce9 /tdelfeditor
parent93e9da4a7494abd7c516a6246d0089e80fa78d84 (diff)
downloadtdelibs-ba556053e192e56cdb40be9319083a5e776b4c8b.tar.gz
tdelibs-ba556053e192e56cdb40be9319083a5e776b4c8b.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> (cherry picked from commit 799489de17c13e9bcdbf5f14eb470e74590e9d3f)
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( )