]> git.proxmox.com Git - debcargo-conf.git/commitdiff
fd: fix the completion
authorSylvestre Ledru <sylvestre@debian.org>
Sat, 21 Jan 2023 10:09:28 +0000 (11:09 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 22 Jan 2023 08:42:24 +0000 (09:42 +0100)
src/fd-find/debian/changelog
src/fd-find/debian/fd-find.install
src/fd-find/debian/rules

index b35e8448e4c363bdfbdc121af9fd0fb997bee04b..e47bda162f294b7a101af9d654522d7cafe9c546 100644 (file)
@@ -1,3 +1,10 @@
+rust-fd-find (8.6.0-3) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
+
+  * Package fd-find 8.6.0 from crates.io using debcargo 2.6.0
+  * Simplify and fix the completions
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Sat, 21 Jan 2023 11:09:57 +0100
+
 rust-fd-find (8.6.0-2) unstable; urgency=medium
 
   * Package fd-find 8.6.0 from crates.io using debcargo 2.6.0
index 33a68c85f19a15e30330732f773197fec1bbfc07..0757a264936004b9ad3c4eabd7cb0af9d7658bcb 100644 (file)
@@ -1,2 +1,3 @@
-#target/*/release/build/fd-find-*/out/*.bash     /usr/share/bash-completion/completions
-#target/*/release/build/fd-find-*/out/*.fish     /usr/share/fish/completions
+fd.bash     /usr/share/bash-completion/completions
+fd.fish     /usr/share/fish/completions
+contrib/completion/_fd /usr/share/zsh/vendor-completions/
index 98e73dc0ca3f821f68fb3c8b05aebc374b89ffbf..f074602c4639586a4aeca470b060aa6a3c495023 100644 (file)
@@ -6,15 +6,8 @@
 override_dh_auto_install:
        # /usr/bin/fd already used, install into /usr/lib/cargo/bin
        DEB_CARGO_INSTALL_PREFIX=/usr/lib/cargo dh_auto_install
-
-override_dh_install:
-       find target
-       dh_install
-#      set -e; for i in debian/fd-find/usr/share/bash-completion/completions/*.bash; do mv "$$i" "$${i%.bash}"; done
-#      mkdir -p debian/fd-find/usr/share/zsh/vendor-completions
-#      cp contrib/completion/_fd debian/fd-find/usr/share/zsh/vendor-completions
-#      cd debian/fd-find/usr/share/zsh/vendor-completions && ln -s _fd _fdfind && cd -
-       dh_missing
+       debian/fd-find/usr/lib/cargo/bin/fd --gen-completions bash > fd.bash
+       debian/fd-find/usr/lib/cargo/bin/fd --gen-completions fish > fd.fish
 
 override_dh_dwz:
        # Don't do anything. fails because of the