mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 13:26:38 +02:00
core: add platform-dependent extension on "weechat-curses" link (so that link is "weechat-curses.exe" on cygwin)
This commit is contained in:
@@ -81,5 +81,5 @@ INSTALL(TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin)
|
||||
# Create a symbolic link weechat -> weechat-curses
|
||||
# This link is created for compatibility with old versions on /upgrade.
|
||||
# It may be removed in future.
|
||||
INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E remove -f \"${CMAKE_INSTALL_PREFIX}/bin/weechat-curses\")")
|
||||
INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink weechat \"${CMAKE_INSTALL_PREFIX}/bin/weechat-curses\")")
|
||||
INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E remove -f \"${CMAKE_INSTALL_PREFIX}/bin/weechat-curses${CMAKE_EXECUTABLE_SUFFIX}\")")
|
||||
INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink weechat \"${CMAKE_INSTALL_PREFIX}/bin/weechat-curses${CMAKE_EXECUTABLE_SUFFIX}\")")
|
||||
|
||||
@@ -50,4 +50,4 @@ EXTRA_DIST = CMakeLists.txt
|
||||
# This link is created for compatibility with old versions on /upgrade.
|
||||
# It may be removed in future.
|
||||
install-exec-hook:
|
||||
(cd $(DESTDIR)$(bindir) && rm -f weechat-curses && $(LN_S) weechat weechat-curses)
|
||||
(cd $(DESTDIR)$(bindir) && rm -f weechat-curses$(EXEEXT) && $(LN_S) weechat weechat-curses$(EXEEXT))
|
||||
|
||||
Reference in New Issue
Block a user