|
@@ -15,8 +15,20 @@ if(CHROOT_DIR AND NOT EXISTS "$ENV{DESTDIR}${CHROOT_DIR}")
|
15
|
15
|
file(MAKE_DIRECTORY "$ENV{DESTDIR}${CHROOT_DIR}")
|
16
|
16
|
endif()
|
17
|
17
|
|
18
|
|
-if(INIT_FLAVOR AND NOT EXISTS "$ENV{DESTDIR}${CONFIG_DIR}/@PROJECT_NAME@")
|
19
|
|
- file(INSTALL FILES "@CMAKE_CURRENT_BINARY_DIR@/@PROJECT_NAME@.default" DESTINATION "${CONFIG_DIR}" RENAME "@PROJECT_NAME@")
|
|
18
|
+if(INIT_FLAVOR)
|
|
19
|
+ if (NOT EXISTS "$ENV{DESTDIR}${CONFIG_DIR}/@PROJECT_NAME@")
|
|
20
|
+ file(INSTALL FILES "@CMAKE_CURRENT_BINARY_DIR@/@PROJECT_NAME@.default" DESTINATION "${CONFIG_DIR}" RENAME "@PROJECT_NAME@")
|
|
21
|
+ else()
|
|
22
|
+ file(INSTALL FILES "@CMAKE_CURRENT_BINARY_DIR@/@PROJECT_NAME@.default" DESTINATION "${CONFIG_DIR}" RENAME "@PROJECT_NAME@.new")
|
|
23
|
+ message(STATUS "")
|
|
24
|
+ message(STATUS "*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*")
|
|
25
|
+ message(STATUS "*!* ${CONFIG_DIR}/@PROJECT_NAME@ will NOT be overwritten!")
|
|
26
|
+ message(STATUS "*!* Please note the changes from @PROJECT_NAME@.new in the same folder and")
|
|
27
|
+ message(STATUS "*!* update your configuration accordinly.")
|
|
28
|
+ message(STATUS "*!* See also README_UPGRADE.md for details")
|
|
29
|
+ message(STATUS "*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*")
|
|
30
|
+ message(STATUS "")
|
|
31
|
+ endif()
|
20
|
32
|
endif()
|
21
|
33
|
|
22
|
34
|
if(INIT_FLAVOR STREQUAL "sysv-lsb")
|