+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
-#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/
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