In tdelibs/kdoctools/CMakeLists.txt,
I added the following:
include( ConfigureChecks.cmake )
In that same directory I created two files:
ConfigureChecks.cmake
update-entities.sh
The update-entities.sh script never executes. The script
works --- I can run manually just fine.
ConfigureChecks.cmake looks like this:
#################################################
#
# (C) 2012 Trinity Project
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
configure_file(
${CMAKE_SOURCE_DIR}/kdoctools/update-entities.sh
${CMAKE_SOURCE_DIR}/kdoctools/update-entities @ONLY )
set( UPDATE_SCRIPT
"${CMAKE_SOURCE_DIR}/kdoctools/update-entities" )
set( TDEVERSION_FILE
"${CMAKE_SOURCE_DIR}/tdecore/tdeversion.h" )
set( ENTITIES_FILE
"${CMAKE_SOURCE_DIR}/kdoctools/customization/entities/general.entities"
)
if( NOT EXISTS ${UPDATE_SCRIPT} )
tde_message_fatal( "${UPDATE_SCRIPT} not found!\n
Check your sources." )
endif( )
if( NOT EXISTS ${TDEVERSION_FILE} )
tde_message_fatal( "${TDEVERSION_FILE} not found!\n
Check your sources." )
endif( )
if( NOT EXISTS ${ENTITIES_FILE} )
tde_message_fatal( "${ENTITIES_FILE} not found!\n
Check your sources." )
endif( )
execute_process(
COMMAND "bash ${UPDATE_SCRIPT}"
RESULT_VARIABLE _result
OUTPUT_STRIP_TRAILING_WHITESPACE )
if( _result )
tde_message_fatal( "Unable to update
${ENTITIES_FILE}!\n " )
else( )
message( STATUS "Updated ${ENTITIES_FILE}." )
endif( )
I had to add the following:
execute_process( COMMAND chmod +x ${UPDATE_SCRIPT} )
Darrell