[mapguide-commits] r9301 - in sandbox/jng/cmake_v2: . Web/src
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Jan 9 05:41:53 PST 2018
Author: jng
Date: 2018-01-09 05:41:53 -0800 (Tue, 09 Jan 2018)
New Revision: 9301
Modified:
sandbox/jng/cmake_v2/CMakeLists.txt
sandbox/jng/cmake_v2/Web/src/CMakeLists.txt
Log:
Stamp mapadmin/resizableadmin.php as well
Modified: sandbox/jng/cmake_v2/CMakeLists.txt
===================================================================
--- sandbox/jng/cmake_v2/CMakeLists.txt 2018-01-09 13:22:43 UTC (rev 9300)
+++ sandbox/jng/cmake_v2/CMakeLists.txt 2018-01-09 13:41:53 UTC (rev 9301)
@@ -44,6 +44,7 @@
set(MG_VERSION_REV 0)
endif (NOT MG_VERSION_REV)
set(MG_VERSION "${MG_VERSION_MAJOR}.${MG_VERSION_MINOR}.${MG_VERSION_RELEASE}")
+set(MG_VERSION_FULL "${MG_VERSION}.${MG_VERSION_REV}")
set(MG_HTTPD_PORT 8008)
set(MG_TOMCAT_PORT 8009)
Modified: sandbox/jng/cmake_v2/Web/src/CMakeLists.txt
===================================================================
--- sandbox/jng/cmake_v2/Web/src/CMakeLists.txt 2018-01-09 13:22:43 UTC (rev 9300)
+++ sandbox/jng/cmake_v2/Web/src/CMakeLists.txt 2018-01-09 13:41:53 UTC (rev 9301)
@@ -15,6 +15,12 @@
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/localized DESTINATION ${MG_WWWROOT} COMPONENT ${MG_COMPONENT})
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/mapadmin DESTINATION ${MG_WWWROOT} COMPONENT ${MG_COMPONENT})
+
+# Stamp actual version to resizableadmin.php
+file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/mapadmin/resizableadmin.php DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/mapadmin)
+execute_process(COMMAND sed -i "s#${MG_VERSION_MAJOR}.${MG_VERSION_MINOR}.0.0#${MG_VERSION_FULL}#g" ${CMAKE_CURRENT_BINARY_DIR}/mapadmin/resizableadmin.php)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mapadmin/resizableadmin.php DESTINATION ${MG_WWWROOT}/mapadmin COMPONENT ${MG_COMPONENT})
+
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/mapagent DESTINATION ${MG_WWWROOT} COMPONENT ${MG_COMPONENT})
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/mapviewerphp DESTINATION ${MG_WWWROOT} COMPONENT ${MG_COMPONENT})
if (WITH_JAVA)
More information about the mapguide-commits
mailing list