From 98897e7f9d532a4eaaad5158b82e8f200048feed Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Tue, 28 Apr 2015 22:59:12 +0000 Subject: [PATCH] Solve the WSJT-X manual versioning issue The user guide is now installed with the product version in the name so serving the same file from the project web server will allow multiple manual versions to be easily supported. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5320 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- CMakeLists.txt | 8 ++++---- doc/CMakeLists.txt | 1 + doc/wsjtx.conf.in | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 42ac3185d..5d8f39223 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,9 @@ if (POLICY CMP0043) endif (POLICY CMP0043) +include (${PROJECT_SOURCE_DIR}/CMake/VersionCompute.cmake) +message (STATUS "Building ${CMAKE_PROJECT_NAME}-${wsjtx_VERSION}") + # # project information # @@ -49,7 +52,7 @@ set (PROJECT_VENDOR "Joe Taylor, K1JT") set (PROJECT_CONTACT "Joe Taylor ") set (PROJECT_COPYRIGHT "Copyright (C) 2001-2014 by Joe Taylor, K1JT") set (PROJECT_HOMEPAGE "http://www.physics.princeton.edu/pulsar/K1JT/wsjtx.html") -set (PROJECT_MANUAL wsjtx-main.html) +set (PROJECT_MANUAL wsjtx-main-${wsjtx_VERSION}.html) set (PROJECT_MANUAL_DIRECTORY_URL http://www.physics.princeton.edu/pulsar/K1JT/wsjtx-doc) set (PROJECT_SUMMARY_DESCRIPTION "${PROJECT_NAME} - JT9 and JT65 Modes for LF, MF and HF Amateur Radio.") set (PROJECT_DESCRIPTION "${PROJECT_SUMMARY_DESCRIPTION} @@ -80,9 +83,6 @@ set (PROJECT_KVASD_URL http://svn.code.sf.net/p/wsjt/wsjt/trunk/kvasd-binary) set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake/Modules ${CMAKE_MODULE_PATH}) -include (${PROJECT_SOURCE_DIR}/CMake/VersionCompute.cmake) -message (STATUS "Building ${CMAKE_PROJECT_NAME}-${wsjtx_VERSION}") - # make sure that the default configuration is a RELEASE if (NOT CMAKE_BUILD_TYPE) set (CMAKE_BUILD_TYPE RELEASE CACHE STRING diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index e97b194b7..90fefd92f 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -134,5 +134,6 @@ add_custom_target (docs ALL DEPENDS ${user_guide}) install (FILES ${user_guide} DESTINATION ${WSJT_SHARE_DESTINATION}/${WSJT_DOC_DESTINATION} + RENAME ${PROJECT_MANUAL} #COMPONENT runtime ) diff --git a/doc/wsjtx.conf.in b/doc/wsjtx.conf.in index ae6214f53..0ba42eae1 100644 --- a/doc/wsjtx.conf.in +++ b/doc/wsjtx.conf.in @@ -4,4 +4,4 @@ VERSION_MAJOR=@WSJTX_VERSION_MAJOR@ VERSION_MINOR=@WSJTX_VERSION_MINOR@ VERSION_PATCH=@WSJTX_VERSION_PATCH@ -VERSION=@WSJTX_VERSION_MAJOR@.@WSJTX_VERSION_MINOR@.@WSJTX_VERSION_PATCH@ +VERSION=@wsjtx_VERSION@