mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Document how to use the manpages
This commit is contained in:
parent
12fc4a81f8
commit
342639b57f
1 changed files with 17 additions and 3 deletions
20
README.md
20
README.md
|
@ -12,7 +12,7 @@
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
|
|
||||||
<!-- markdownlint-disable commands-show-output no-duplicate-heading -->
|
<!-- markdownlint-disable commands-show-output no-duplicate-heading -->
|
||||||
<!-- spell-checker:ignore markdownlint ; (options) DESTDIR RUNTEST UTILNAME -->
|
<!-- spell-checker:ignore markdownlint ; (options) DESTDIR RUNTEST UTILNAME manpages -->
|
||||||
|
|
||||||
uutils is an attempt at writing universal (as in cross-platform) CLI
|
uutils is an attempt at writing universal (as in cross-platform) CLI
|
||||||
utilities in [Rust](http://www.rust-lang.org).
|
utilities in [Rust](http://www.rust-lang.org).
|
||||||
|
@ -145,8 +145,8 @@ $ cargo install --path .
|
||||||
|
|
||||||
This command will install uutils into Cargo's *bin* folder (*e.g.* `$HOME/.cargo/bin`).
|
This command will install uutils into Cargo's *bin* folder (*e.g.* `$HOME/.cargo/bin`).
|
||||||
|
|
||||||
This does not install files necessary for shell completion. For shell completion to work,
|
This does not install files necessary for shell completion or manpages.
|
||||||
use `GNU Make` or see `Manually install shell completions`.
|
For manpages or shell completion to work, use `GNU Make` or see `Manually install shell completions`/`Manually install manpages`.
|
||||||
|
|
||||||
### GNU Make
|
### GNU Make
|
||||||
|
|
||||||
|
@ -214,6 +214,20 @@ run:
|
||||||
cargo run completion ls bash > /usr/local/share/bash-completion/completions/ls
|
cargo run completion ls bash > /usr/local/share/bash-completion/completions/ls
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Manually install manpages
|
||||||
|
|
||||||
|
To generate manpages, the syntax is:
|
||||||
|
```bash
|
||||||
|
cargo run manpage <utility>
|
||||||
|
```
|
||||||
|
|
||||||
|
So, to install the manpage for `ls` to `/usr/local/share/man/man1/ls.1`
|
||||||
|
run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cargo run manpage ls > /usr/local/share/man/man1/ls.1
|
||||||
|
```
|
||||||
|
|
||||||
## Un-installation
|
## Un-installation
|
||||||
|
|
||||||
Un-installation differs depending on how you have installed uutils. If you used
|
Un-installation differs depending on how you have installed uutils. If you used
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue