Skip to content

Commit 601ea64

Browse files
renner0ecgwalters
authored andcommitted
Makefile: add elvish and powershell completion
Not packaging those due to the lack of documentation on this. Signed-off-by: renner <renner0@posteo.de>
1 parent 5d89520 commit 601ea64

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ install: completion
6262
install -D -m 0644 -t $(DESTDIR)$(prefix)/share/man/man5 target/man/*.5; \
6363
install -D -m 0644 -t $(DESTDIR)$(prefix)/share/man/man8 target/man/*.8; \
6464
install -D -m 0644 target/completion/bootc.bash $(DESTDIR)$(prefix)/share/bash-completion/completions/bootc
65-
install -D -m 0644 target/completion/bootc.zsh $(DESTDIR)$(prefix)/share/zsh/site-functions/_bootc
65+
install -D -m 0644 target/completion/bootc.elvish $(DESTDIR)$(prefix)/share/elvish/lib/bootc.elv
6666
install -D -m 0644 target/completion/bootc.fish $(DESTDIR)$(prefix)/share/fish/vendor_completions.d/bootc.fish
67+
install -D -m 0644 target/completion/bootc.powershell $(DESTDIR)$(prefix)/share/powershell/Modules/Bootc/Bootc.psm1
68+
install -D -m 0644 target/completion/bootc.zsh $(DESTDIR)$(prefix)/share/zsh/site-functions/_bootc
6769
install -D -m 0644 -t $(DESTDIR)/$(prefix)/lib/systemd/system systemd/*.service systemd/*.timer systemd/*.path systemd/*.target
6870
install -D -m 0644 -t $(DESTDIR)/$(prefix)/share/doc/bootc/baseimage/base/usr/lib/ostree/ baseimage/base/usr/lib/ostree/prepare-root.conf
6971
install -d -m 755 $(DESTDIR)/$(prefix)/share/doc/bootc/baseimage/base/sysroot

contrib/packaging/bootc.spec

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,8 @@ chmod +x %{?buildroot}/%{system_reinstall_bootc_install_podman_path}
164164
touch %{?buildroot}/%{_docdir}/bootc/baseimage/base/sysroot/.keepdir
165165
find %{?buildroot}/%{_docdir} ! -type d -printf '%{_docdir}/%%P\n' | sort > bootcdoclist.txt
166166

167-
install -Dpm 0644 target/completion/bootc.bash %{buildroot}%{bash_completions_dir}/bootc
168-
install -Dpm 0644 target/completion/bootc.zsh %{buildroot}%{zsh_completions_dir}/_bootc
169-
install -Dpm 0644 target/completion/bootc.fish %{buildroot}%{fish_completions_dir}/bootc.fish
167+
rm -f %{buildroot}/%{_prefix}/share/elvish/lib/bootc.elv
168+
rm -f %{buildroot}/%{_prefix}/share/powershell/Modules/Bootc/Bootc.psm1
170169

171170
%if %{with check}
172171
%check

0 commit comments

Comments
 (0)