2019-05-18 08:11:01 +02:00
|
|
|
# Create lists
|
2019-11-27 15:49:09 +01:00
|
|
|
if(COMMAND REGISTER_SYMLINK)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2019-05-18 08:11:01 +02:00
|
|
|
macro(REGISTER_SYMLINK from to)
|
|
|
|
list(APPEND MARIADB_SYMLINK_FROMS ${from})
|
|
|
|
list(APPEND MARIADB_SYMLINK_TOS ${to})
|
|
|
|
endmacro()
|
|
|
|
|
|
|
|
# MariaDB names for executables
|
2020-03-20 15:41:54 +01:00
|
|
|
REGISTER_SYMLINK("mariadb" "mysql")
|
|
|
|
REGISTER_SYMLINK("mariadb-access" "mysqlaccess")
|
|
|
|
REGISTER_SYMLINK("mariadb-admin" "mysqladmin")
|
|
|
|
REGISTER_SYMLINK("mariadb-backup" "mariabackup")
|
|
|
|
REGISTER_SYMLINK("mariadb-binlog" "mysqlbinlog")
|
|
|
|
REGISTER_SYMLINK("mariadb-check" "mysqlcheck")
|
|
|
|
REGISTER_SYMLINK("mariadb-client-test-embedded" "mysql_client_test_embedded")
|
|
|
|
REGISTER_SYMLINK("mariadb-client-test" "mysql_client_test")
|
2020-03-21 13:26:50 +01:00
|
|
|
REGISTER_SYMLINK("mariadb-config" "mysql_config")
|
2020-03-20 15:41:54 +01:00
|
|
|
REGISTER_SYMLINK("mariadb-convert-table-format" "mysql_convert_table_format")
|
|
|
|
REGISTER_SYMLINK("mariadb-dump" "mysqldump")
|
|
|
|
REGISTER_SYMLINK("mariadb-dumpslow" "mysqldumpslow")
|
|
|
|
REGISTER_SYMLINK("mariadb-embedded" "mysql_embedded")
|
|
|
|
REGISTER_SYMLINK("mariadb-find-rows" "mysql_find_rows")
|
|
|
|
REGISTER_SYMLINK("mariadb-fix-extensions" "mysql_fix_extensions")
|
|
|
|
REGISTER_SYMLINK("mariadb-hotcopy" "mysqlhotcopy")
|
|
|
|
REGISTER_SYMLINK("mariadb-import" "mysqlimport")
|
|
|
|
REGISTER_SYMLINK("mariadb-install-db" "mysql_install_db")
|
|
|
|
REGISTER_SYMLINK("mariadb-ldb" "mysql_ldb")
|
|
|
|
REGISTER_SYMLINK("mariadb-plugin" "mysql_plugin")
|
|
|
|
REGISTER_SYMLINK("mariadb-secure-installation" "mysql_secure_installation")
|
|
|
|
REGISTER_SYMLINK("mariadb-setpermission" "mysql_setpermission")
|
|
|
|
REGISTER_SYMLINK("mariadb-show" "mysqlshow")
|
|
|
|
REGISTER_SYMLINK("mariadb-slap" "mysqlslap")
|
|
|
|
REGISTER_SYMLINK("mariadb-test" "mysqltest")
|
|
|
|
REGISTER_SYMLINK("mariadb-test-embedded" "mysqltest_embedded")
|
|
|
|
REGISTER_SYMLINK("mariadb-tzinfo-to-sql" "mysql_tzinfo_to_sql")
|
|
|
|
REGISTER_SYMLINK("mariadb-upgrade" "mysql_upgrade")
|
|
|
|
REGISTER_SYMLINK("mariadb-upgrade-service" "mysql_upgrade_service")
|
|
|
|
REGISTER_SYMLINK("mariadb-upgrade-wizard" "mysql_upgrade_wizard")
|
|
|
|
REGISTER_SYMLINK("mariadb-waitpid" "mysql_waitpid")
|
|
|
|
REGISTER_SYMLINK("mariadbd" "mysqld")
|
|
|
|
REGISTER_SYMLINK("mariadbd-multi" "mysqld_multi")
|
|
|
|
REGISTER_SYMLINK("mariadbd-safe" "mysqld_safe")
|
|
|
|
REGISTER_SYMLINK("mariadbd-safe-helper" "mysqld_safe_helper")
|
|
|
|
|
|
|
|
MACRO(GET_SYMLINK name out)
|
|
|
|
set(${out})
|
|
|
|
list(FIND MARIADB_SYMLINK_FROMS ${name} _index)
|
2019-05-18 08:11:01 +02:00
|
|
|
if (${_index} GREATER -1)
|
2020-03-20 15:41:54 +01:00
|
|
|
list(GET MARIADB_SYMLINK_TOS ${_index} ${out})
|
2019-05-18 08:11:01 +02:00
|
|
|
endif()
|
2020-03-20 15:41:54 +01:00
|
|
|
ENDMACRO()
|