]> git.proxmox.com Git - debcargo-conf.git/commitdiff
Also ship completion for fdfind (Closes: #936036)
authorSylvestre Ledru <sylvestre@debian.org>
Sun, 1 Dec 2019 11:23:45 +0000 (12:23 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 1 Dec 2019 11:23:45 +0000 (12:23 +0100)
src/fd-find/debian/changelog
src/fd-find/debian/patches/completion-fdfind.diff [new file with mode: 0644]
src/fd-find/debian/patches/series
src/fd-find/debian/rules

index f0bef936cf5304a9a84a644cb7c347f14c152ea3..7308429101fc98f4deeb606d43eaa8dc180283d3 100644 (file)
@@ -5,6 +5,7 @@ rust-fd-find (7.4.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
   * Ansi_term updated from 0.11 to 0.12
   * Remove the jemallocator dependencies (still in NEW)
     disable-jemallocator.diff
+  * Also ship completion for fdfind (Closes: #936036)
 
  -- Sylvestre Ledru <sylvestre@debian.org>  Sun, 01 Dec 2019 11:57:33 +0100
 
diff --git a/src/fd-find/debian/patches/completion-fdfind.diff b/src/fd-find/debian/patches/completion-fdfind.diff
new file mode 100644 (file)
index 0000000..6f7eb00
--- /dev/null
@@ -0,0 +1,13 @@
+Index: fd-find/build.rs
+===================================================================
+--- fd-find.orig/build.rs
++++ fd-find/build.rs
+@@ -35,4 +35,8 @@ fn main() {
+     app.gen_completions("fd", Shell::Fish, &outdir);
+     app.gen_completions("fd", Shell::Zsh, &outdir);
+     app.gen_completions("fd", Shell::PowerShell, &outdir);
++    app.gen_completions("fdfind", Shell::Bash, &outdir);
++    app.gen_completions("fdfind", Shell::Fish, &outdir);
++    app.gen_completions("fdfind", Shell::Zsh, &outdir);
++    app.gen_completions("fdfind", Shell::PowerShell, &outdir);
+ }
index a764c85e5a2479ce474450ab903c6fd86729228a..6bc24f5ca3f93d2b8e4b28f4474934e04c065afe 100644 (file)
@@ -1 +1,2 @@
 disable-jemallocator.diff
+completion-fdfind.diff
index fcb063cc8e2178013b6fe7ccd0f645b1f23f0fbd..b8186d450f783175b500954d9f34214d033f5763 100644 (file)
@@ -8,9 +8,9 @@ override_dh_install:
        mkdir -p debian/fd-find/usr/lib/cargo/bin/ debian/fd-find/usr/share/fish/completions/ debian/fd-find/usr/share/zsh/vendor-completions/ debian/fd-find/usr/share/bash-completion/completions/
        mv debian/fd-find/usr/bin/fd debian/fd-find/usr/lib/cargo/bin/
        cd debian/fd-find/usr/bin/ && ln -s ../lib/cargo/bin/fd fdfind
-       cp target/*/release/build/fd-find-*/out/fd.bash debian/fd-find/usr/share/bash-completion/completions/fdfind
-       cp target/*/release/build/fd-find-*/out/fd.fish debian/fd-find/usr/share/fish/completions/fdfind.fish
-       cp target/*/release/build/fd-find-*/out/_fd debian/fd-find/usr/share/zsh/vendor-completions/_fdfind
+       cp target/*/release/build/fd-find-*/out/fd*.bash debian/fd-find/usr/share/bash-completion/completions/fdfind
+       cp target/*/release/build/fd-find-*/out/fd*.fish debian/fd-find/usr/share/fish/completions/fdfind.fish
+       cp target/*/release/build/fd-find-*/out/_fd* debian/fd-find/usr/share/zsh/vendor-completions/_fdfind
        dh_install
        dh_missing