Rename the ybcon.sh script to ybcon, and put it in a different install directory.
This commit is contained in:
parent
ebd42d06b1
commit
76057e34ab
|
@ -66,11 +66,12 @@ if (UNIX AND NOT MINGW)
|
|||
set(CPACK_GENERATOR TGZ;STGZ;RPM;DEB)
|
||||
endif()
|
||||
install(FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/scripts/ybcon
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/scripts/bash-completion.sh
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/scripts/fish-completion.fish
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/scripts/zsh-completion.zsh
|
||||
DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/ybcon.d)
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ybcon ${CMAKE_CURRENT_SOURCE_DIR}/scripts/ybcon.sh
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ybcon
|
||||
PERMISSIONS
|
||||
OWNER_WRITE
|
||||
OWNER_EXECUTE
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
# Post install ybcon script
|
||||
|
||||
ln -sf /opt/bin/ybcon.sh /usr/bin/ybcon
|
||||
|
||||
ybconDir="/opt/etc/ybcon.d"
|
||||
ln -sf "$ybconDir/ybcon" "/usr/bin/ybcon"
|
||||
|
||||
fishLoc="/usr/share/fish/vendor_completions.d"
|
||||
bashcompleteLoc="/etc/bash_completion.d"
|
||||
zshLoc="/etc/zsh_completion.d"
|
||||
|
|
Loading…
Reference in New Issue