1# Create lists 2if(COMMAND REGISTER_SYMLINK) 3 return() 4endif() 5 6macro(REGISTER_SYMLINK from to) 7 list(APPEND MARIADB_SYMLINK_FROMS ${from}) 8 list(APPEND MARIADB_SYMLINK_TOS ${to}) 9endmacro() 10 11# MariaDB names for executables 12REGISTER_SYMLINK("mariadb" "mysql") 13REGISTER_SYMLINK("mariadb-access" "mysqlaccess") 14REGISTER_SYMLINK("mariadb-admin" "mysqladmin") 15REGISTER_SYMLINK("mariadb-backup" "mariabackup") 16REGISTER_SYMLINK("mariadb-binlog" "mysqlbinlog") 17REGISTER_SYMLINK("mariadb-check" "mysqlcheck") 18REGISTER_SYMLINK("mariadb-client-test-embedded" "mysql_client_test_embedded") 19REGISTER_SYMLINK("mariadb-client-test" "mysql_client_test") 20REGISTER_SYMLINK("mariadb_config" "mysql_config") 21REGISTER_SYMLINK("mariadb-convert-table-format" "mysql_convert_table_format") 22REGISTER_SYMLINK("mariadb-dump" "mysqldump") 23REGISTER_SYMLINK("mariadb-dumpslow" "mysqldumpslow") 24REGISTER_SYMLINK("mariadb-embedded" "mysql_embedded") 25REGISTER_SYMLINK("mariadb-find-rows" "mysql_find_rows") 26REGISTER_SYMLINK("mariadb-fix-extensions" "mysql_fix_extensions") 27REGISTER_SYMLINK("mariadb-hotcopy" "mysqlhotcopy") 28REGISTER_SYMLINK("mariadb-import" "mysqlimport") 29REGISTER_SYMLINK("mariadb-install-db" "mysql_install_db") 30REGISTER_SYMLINK("mariadb-ldb" "mysql_ldb") 31REGISTER_SYMLINK("mariadb-plugin" "mysql_plugin") 32REGISTER_SYMLINK("mariadb-secure-installation" "mysql_secure_installation") 33REGISTER_SYMLINK("mariadb-setpermission" "mysql_setpermission") 34REGISTER_SYMLINK("mariadb-show" "mysqlshow") 35REGISTER_SYMLINK("mariadb-slap" "mysqlslap") 36REGISTER_SYMLINK("mariadb-test" "mysqltest") 37REGISTER_SYMLINK("mariadb-test-embedded" "mysqltest_embedded") 38REGISTER_SYMLINK("mariadb-tzinfo-to-sql" "mysql_tzinfo_to_sql") 39REGISTER_SYMLINK("mariadb-upgrade" "mysql_upgrade") 40REGISTER_SYMLINK("mariadb-upgrade-service" "mysql_upgrade_service") 41REGISTER_SYMLINK("mariadb-upgrade-wizard" "mysql_upgrade_wizard") 42REGISTER_SYMLINK("mariadb-waitpid" "mysql_waitpid") 43REGISTER_SYMLINK("mariadbd" "mysqld") 44REGISTER_SYMLINK("mariadbd-multi" "mysqld_multi") 45REGISTER_SYMLINK("mariadbd-safe" "mysqld_safe") 46REGISTER_SYMLINK("mariadbd-safe-helper" "mysqld_safe_helper") 47 48MACRO(GET_SYMLINK name out) 49 set(${out}) 50 list(FIND MARIADB_SYMLINK_FROMS ${name} _index) 51 if (${_index} GREATER -1) 52 list(GET MARIADB_SYMLINK_TOS ${_index} ${out}) 53 endif() 54ENDMACRO() 55