Rename the ybcon.sh script to ybcon, and put it in a different install directory.

This commit is contained in:
Username404-59 2021-02-28 18:12:47 +01:00
parent ebd42d06b1
commit 76057e34ab
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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"