From: <hug...@li...> - 2010-06-27 05:14:41
|
details: http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/hgrepo/h/hu/hugin/hugin/rev/a7c760281f3c changeset: 4100:a7c760281f3c user: Terry Duell <td...@us...> date: Sun Jun 27 15:00:43 2010 +1000 description: change CMakeLists.txt to produce Hg log file when UPDATE_CHANGELOG=1 switch is used diffstat: CMakeLists.txt | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diffs (21 lines): diff -r 9f9f7edf27f3 -r a7c760281f3c CMakeLists.txt --- a/CMakeLists.txt Fri Jun 25 12:55:29 2010 +0200 +++ b/CMakeLists.txt Sun Jun 27 15:00:43 2010 +1000 @@ -54,6 +54,17 @@ SET(HUGIN_DEVELOPMENT_VERSION 0) ENDIF() +# +# Check for mercurial and update changelog +# +IF (EXISTS ${PROJECT_SOURCE_DIR}/.hg) + IF (UPDATE_CHANGELOG) + FIND_PROGRAM(_hg hg) + EXECUTE_PROCESS(COMMAND ${_hg} log --follow --style=changelog OUTPUT_FILE ${PROJECT_SOURCE_DIR}/ChangeLog) + MESSAGE("-- New ChangeLog generated") + ENDIF (UPDATE_CHANGELOG) +ENDIF (EXISTS ${PROJECT_SOURCE_DIR}/.hg) + # version to display IF (HUGIN_DEVELOPMENT_VERSION EQUAL 1) set(DISPLAY_VERSION "Pre-Release ${V_MAJOR}.${V_MINOR}.${V_PATCH}.${HUGIN_WC_REVISION}") |