Skip to content

Commit

Permalink
Integrate bash completion into Debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
strahe committed Aug 6, 2024
1 parent 8696c53 commit 473bc54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apt/DEBIAN/control
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Rules-Requires-Root: no
Package: $PACKAGE
Version: $VERSION
Architecture: $ARCH
Depends: hwloc, mesa-opencl-icd, aria2
Depends: hwloc, mesa-opencl-icd, aria2, bash-completion
Description: A Filecoin Storage Provider implementation.
This Filecoin Storage Provider implementation is a fork of the Lotus project.
It improves upon the previous by solving more complete problem sets including
Expand Down
6 changes: 6 additions & 0 deletions apt/make_debs.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ func part2(base, product, extra string) {
base = path.Join(dir, "lib", "systemd", "system")
OrPanic(os.MkdirAll(base, 0755))
OrPanic(copyFile("apt/curio.service", path.Join(base, "curio.service")))
base = path.Join(dir, "usr", "share", "bash-completion", "completions")
OrPanic(os.MkdirAll(base, 0755))
OrPanic(copyFile("scripts/completion/bash_autocomplete", path.Join(base, "curio")))
base = path.Join(dir, "usr", "local", "share", "zsh", "site-functions")
OrPanic(os.MkdirAll(base, 0755))
OrPanic(copyFile("scripts/completion/zsh_autocomplete", path.Join(base, "_curio")))
}
// fix the debian/control "package" and "version" fields
fb, err := os.ReadFile(path.Join(dir, "DEBIAN", "control"))
Expand Down

0 comments on commit 473bc54

Please sign in to comment.