File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -291,12 +291,16 @@ ELSE()
291
291
IF (WITH_WSREP )
292
292
SET (WSREP_SCRIPTS
293
293
wsrep_sst_mysqldump
294
- wsrep_sst_common
295
294
wsrep_sst_rsync
296
295
wsrep_sst_xtrabackup
297
296
wsrep_sst_xtrabackup-v2
298
297
wsrep_sst_mariabackup
299
298
)
299
+ # The following script is sourced from other SST scripts, so it should
300
+ # not be made executable.
301
+ SET (WSREP_SOURCE
302
+ wsrep_sst_common
303
+ )
300
304
ENDIF ()
301
305
IF (NOT WITHOUT_SERVER )
302
306
SET (SERVER_SCRIPTS
@@ -336,6 +340,9 @@ ELSE()
336
340
MESSAGE (FATAL_ERROR "Can not find ${file} .sh or ${file} in "
337
341
"${CMAKE_CURRENT_SOURCE_DIR} " )
338
342
ENDIF ()
343
+ # TODO: The following EXECUTE could be redundant as INSTALL_SCRIPT
344
+ # macro does an INSTALL(PROGRAMS ..) that automatically sets +x on
345
+ # the executable.
339
346
EXECUTE_PROCESS (COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR} /${file} )
340
347
IF (NOT ${file} _COMPONENT )
341
348
SET (${file} _COMPONENT Server )
@@ -346,6 +353,20 @@ ELSE()
346
353
COMPONENT ${${file}_COMPONENT}
347
354
)
348
355
ENDFOREACH ()
356
+
357
+ FOREACH (file ${WSREP_SOURCE} )
358
+ CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR} /${file}.sh
359
+ ${CMAKE_CURRENT_BINARY_DIR} /${file} ESCAPE_QUOTES @ONLY )
360
+ IF (NOT ${file} _COMPONENT )
361
+ SET (${file} _COMPONENT Server )
362
+ ENDIF ()
363
+ INSTALL (FILES
364
+ ${CMAKE_CURRENT_BINARY_DIR} /${file}
365
+ DESTINATION ${INSTALL_BINDIR}
366
+ COMPONENT ${${file}_COMPONENT}
367
+ )
368
+ ENDFOREACH ()
369
+
349
370
ENDIF ()
350
371
351
372
# Install libgcc as mylibgcc.a
You can’t perform that action at this time.
0 commit comments