diff options
| author | songyanchao <[email protected]> | 2023-06-17 03:35:19 +0000 |
|---|---|---|
| committer | songyanchao <[email protected]> | 2023-06-17 03:35:19 +0000 |
| commit | cce2c52dd8315086b0dd1524d03abba417313bb1 (patch) | |
| tree | 0d2c64a2adb2b50aa9cb86ff3b75b8922c729f8f /tools | |
| parent | dbf6eb19c7736124f0c67520bc811dfe03e5f449 (diff) | |
🐎 ci(DPISDN-9): 修改 update-alternatives 配置目录v4.6.28-20230617
修改 update-alternatives 配置目录
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/mrmarch/CMakeLists.txt | 2 | ||||
| -rwxr-xr-x | tools/mrmarch/mrmarch.in | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/mrmarch/CMakeLists.txt b/tools/mrmarch/CMakeLists.txt index 5e3db91..310ae0a 100644 --- a/tools/mrmarch/CMakeLists.txt +++ b/tools/mrmarch/CMakeLists.txt @@ -1,2 +1,2 @@ -configure_file(mrmarch.in mrmarch) +configure_file(mrmarch.in mrmarch @ONLY) install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/mrmarch DESTINATION ${MR_INSTALL_BINDIR_RELATIVE_PATH} COMPONENT Program) diff --git a/tools/mrmarch/mrmarch.in b/tools/mrmarch/mrmarch.in index 72d21c7..915c72b 100755 --- a/tools/mrmarch/mrmarch.in +++ b/tools/mrmarch/mrmarch.in @@ -59,13 +59,13 @@ fi # Perform actions based on parameters if [ "$display_flag" = true ]; then - update-alternatives --display mrzcpd --altdir /opt/tsg/mrzcpd/update_alternatives + update-alternatives --display mrzcpd --admindir @CMAKE_INSTALL_PREFIX@/alternatives_admindir --altdir @CMAKE_INSTALL_PREFIX@/alternatives_altdir exit fi if [ "$config_flag" = true ]; then - update-alternatives --config mrzcpd --altdir /opt/tsg/mrzcpd/update_alternatives/ + update-alternatives --config mrzcpd --admindir @CMAKE_INSTALL_PREFIX@/alternatives_admindir --altdir @CMAKE_INSTALL_PREFIX@/alternatives_altdir/ exit fi @@ -74,12 +74,12 @@ if [ "$auto_flag" = true ]; then fi if [ "$march" == "icelake-server" ]; then - update-alternatives --set mrzcpd /opt/tsg/mrzcpd/icelake-server/bin/mrzcpd --altdir /opt/tsg/mrzcpd/update_alternatives + update-alternatives --set mrzcpd /opt/tsg/mrzcpd/icelake-server/bin/mrzcpd --admindir @CMAKE_INSTALL_PREFIX@/alternatives_admindir --altdir @CMAKE_INSTALL_PREFIX@/alternatives_altdir exit elif [ "$march" == "znver1" ]; then - update-alternatives --set mrzcpd /opt/tsg/mrzcpd/znver1/bin/mrzcpd --altdir /opt/tsg/mrzcpd/update_alternatives + update-alternatives --set mrzcpd /opt/tsg/mrzcpd/znver1/bin/mrzcpd --admindir @CMAKE_INSTALL_PREFIX@/alternatives_admindir --altdir @CMAKE_INSTALL_PREFIX@/alternatives_altdir exit else - update-alternatives --set mrzcpd /opt/tsg/mrzcpd/corei7/bin/mrzcpd --altdir /opt/tsg/mrzcpd/update_alternatives + update-alternatives --set mrzcpd /opt/tsg/mrzcpd/corei7/bin/mrzcpd --admindir @CMAKE_INSTALL_PREFIX@/alternatives_admindir --altdir @CMAKE_INSTALL_PREFIX@/alternatives_altdir exit fi |
