mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 19:41:14 -03:00
Revert "Blow away existing $fish_data_dir on (re)install"
This reverts commit e35983438e.
Reopens #4314. Closes #5007.
# Conflicts:
# share/config.fish
This commit is contained in:
@@ -59,14 +59,6 @@ FUNCTION(FISH_CREATE_DIRS)
|
||||
ENDFOREACH(dir)
|
||||
ENDFUNCTION(FISH_CREATE_DIRS)
|
||||
|
||||
FUNCTION(FISH_TRY_REMOVE)
|
||||
FOREACH(dir ${ARGV})
|
||||
IF(EXISTS ${CMAKE_INSTALL_PREFIX}/${dir})
|
||||
FILE(REMOVE_RECURSE ${CMAKE_INSTALL_PREFIX}/${dir})
|
||||
ENDIF()
|
||||
ENDFOREACH()
|
||||
ENDFUNCTION(FISH_TRY_REMOVE)
|
||||
|
||||
FUNCTION(FISH_TRY_CREATE_DIRS)
|
||||
FOREACH(dir ${ARGV})
|
||||
IF(NOT IS_ABSOLUTE ${dir})
|
||||
@@ -98,8 +90,6 @@ INSTALL(TARGETS ${PROGRAMS}
|
||||
FISH_CREATE_DIRS(${sysconfdir}/fish/conf.d)
|
||||
INSTALL(FILES etc/config.fish DESTINATION ${sysconfdir}/fish/)
|
||||
|
||||
FISH_TRY_REMOVE(${rel_datadir}/fish)
|
||||
|
||||
FISH_CREATE_DIRS(${rel_datadir}/fish ${rel_datadir}/fish/completions
|
||||
${rel_datadir}/fish/functions ${rel_datadir}/fish/groff
|
||||
${rel_datadir}/fish/man/man1 ${rel_datadir}/fish/tools
|
||||
|
||||
Reference in New Issue
Block a user