mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
Install bash/zsh completions in correct locations
This commit is contained in:
parent
fab5cef0ca
commit
fda11a652b
@ -99,6 +99,10 @@ if(BUILD_TESTS)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(SYSTEMD_UNITDIR /lib/systemd/system CACHE PATH "Path to systemd unit files")
|
set(SYSTEMD_UNITDIR /lib/systemd/system CACHE PATH "Path to systemd unit files")
|
||||||
|
set(BASH_COMPLETIONS_DIR usr/share/bash-completion/completions CACHE PATH "Path to bash completions directory")
|
||||||
|
set(ZSH_COMPLETIONS_DIR usr/share/zsh/site-functions CACHE PATH "Path to zsh completions directory")
|
||||||
install(TARGETS laminard laminarc RUNTIME DESTINATION usr/bin)
|
install(TARGETS laminard laminarc RUNTIME DESTINATION usr/bin)
|
||||||
install(FILES laminar.service DESTINATION ${SYSTEMD_UNITDIR})
|
install(FILES laminar.service DESTINATION ${SYSTEMD_UNITDIR})
|
||||||
install(FILES laminar.conf DESTINATION etc)
|
install(FILES laminar.conf DESTINATION etc)
|
||||||
|
install(FILES etc/laminarc-completion.bash DESTINATION ${BASH_COMPLETIONS_DIR} RENAME laminarc)
|
||||||
|
install(FILES etc/laminarc-completion.zsh DESTINATION ${ZSH_COMPLETIONS_DIR} RENAME _laminarc)
|
||||||
|
@ -66,6 +66,8 @@ make
|
|||||||
%{_bindir}/laminard
|
%{_bindir}/laminard
|
||||||
%{_unitdir}/laminar.service
|
%{_unitdir}/laminar.service
|
||||||
%config(noreplace) %{_sysconfdir}/laminar.conf
|
%config(noreplace) %{_sysconfdir}/laminar.conf
|
||||||
|
%{_datarootdir}/bash-completion/completions/laminarc
|
||||||
|
%{_datarootdir}/zsh/site-functions/_laminarc
|
||||||
|
|
||||||
%post
|
%post
|
||||||
echo Creating laminar user with home in %{_sharedstatedir}/laminar
|
echo Creating laminar user with home in %{_sharedstatedir}/laminar
|
||||||
|
@ -37,7 +37,7 @@ cmake -DRAPIDJSON_BUILD_EXAMPLES=off .
|
|||||||
make install
|
make install
|
||||||
|
|
||||||
cd /build
|
cd /build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/ /laminar
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/ -DZSH_COMPLETIONS_DIR=/usr/share/zsh/functions/Completion/Unix /laminar
|
||||||
make -j4
|
make -j4
|
||||||
mkdir laminar
|
mkdir laminar
|
||||||
make DESTDIR=laminar install/strip
|
make DESTDIR=laminar install/strip
|
||||||
|
Loading…
Reference in New Issue
Block a user