Import upstream version 1.3.1
Debian Janitor
1 year, 11 months ago
3 | 3 |
CFLAGS += -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-qual -pedantic $(shell $(PKG_CONFIG) --cflags ncursesw panelw)
|
4 | 4 |
LDLIBS = $(shell $(PKG_CONFIG) --libs ncursesw panelw || echo "-lncursesw -ltinfo -lpanelw")
|
5 | 5 |
PREFIX = /usr/local
|
|
6 |
MANDIR = $(PREFIX)/share/man
|
6 | 7 |
|
7 | 8 |
cbonsai: cbonsai.c
|
8 | 9 |
|
9 | |
install: cbonsai
|
|
10 |
cbonsai.1: cbonsai.scd
|
|
11 |
scdoc <$< >$@
|
|
12 |
|
|
13 |
install: cbonsai cbonsai.1
|
10 | 14 |
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
15 |
mkdir -p $(DESTDIR)$(MANDIR)/man1
|
11 | 16 |
install -m 0755 cbonsai $(DESTDIR)$(PREFIX)/bin/cbonsai
|
|
17 |
install -m 0644 cbonsai.1 $(DESTDIR)$(MANDIR)/man1/cbonsai.1
|
12 | 18 |
|
13 | 19 |
uninstall:
|
14 | 20 |
rm -f $(DESTDIR)$(PREFIX)/bin/cbonsai
|
|
21 |
rm -f $(DESTDIR)$(MANDIR)/man1/cbonsai.1
|
15 | 22 |
|
16 | 23 |
clean:
|
17 | 24 |
rm -f cbonsai
|
|
25 |
rm -f cbonsai.1
|
18 | 26 |
|
19 | 27 |
.PHONY: install uninstall clean
|
18 | 18 |
<img src="https://repology.org/badge/vertical-allrepos/cbonsai.svg" alt="Packaging status" align="right">
|
19 | 19 |
</a>
|
20 | 20 |
|
21 | |
### Arch Linux (AUR)
|
|
21 |
`cbonsai` is available in multiple repositories. Check the repology chart to the right to see if `cbonsai` is packaged for your system. A big thank you to all the people who packaged `cbonsai`!
|
22 | 22 |
|
23 | |
Nicholas Boyd Isacsson has kindly packaged `cbonsai` in the [AUR](https://aur.archlinux.org/packages/cbonsai/).
|
|
23 |
If no package exists for your system/distribution, you'll have to use the [manual](https://gitlab.com/jallbrit/cbonsai#manual) install instructions. Below are some more specific instructions for some distributions.
|
24 | 24 |
|
25 | 25 |
### Debian-based
|
26 | 26 |
|
27 | |
Robin Gustafsson has kindly packaged `cbonsai` as a `.deb` file over in [this repository](https://gitlab.com/rgson/debian_cbonsai/-/packages).
|
|
27 |
`cbonsai` is only available in the Debian Unstable repository. However, if you're not on unstable, Robin Gustafsson has kindly packaged `cbonsai` as a `.deb` file over in [this repository](https://gitlab.com/rgson/debian_cbonsai/-/packages).
|
|
28 |
|
|
29 |
### Fedora
|
|
30 |
|
|
31 |
Mohammad Kefah has kindly packaged `cbonsai` in the [Fedora copr](https://copr.fedorainfracloud.org/), which is "similar to what the AUR is to Arch". On Fedora, it can be installed like so:
|
|
32 |
|
|
33 |
```bash
|
|
34 |
sudo dnf copr enable keefle/cbonsai
|
|
35 |
sudo dnf install cbonsai
|
|
36 |
```
|
28 | 37 |
|
29 | 38 |
### MacOS
|
30 | 39 |
|
|
36 | 45 |
```
|
37 | 46 |
|
38 | 47 |
You may need to follow these instructions before running `make install`.
|
|
48 |
|
|
49 |
If you are having trouble installing on MacOS, try reading [this issue](https://gitlab.com/jallbrit/cbonsai/-/issues/10).
|
|
50 |
|
|
51 |
#### MacPorts
|
|
52 |
|
|
53 |
On macOS, you may also install `cbonsai` using [MacPorts](https://www.macports.org). Simply install MacPorts, then issue the following commands:
|
|
54 |
|
|
55 |
```bash
|
|
56 |
sudo port selfupdate
|
|
57 |
sudo port install cbonsai
|
|
58 |
```
|
39 | 59 |
|
40 | 60 |
### Manual
|
41 | 61 |
|
|
140 | 160 |
|
141 | 161 |
## Inspiration
|
142 | 162 |
|
143 | |
This project wouldn't be here if it weren't for its *roots*! `cbonsai` is a newer version of [bonsai.sh](https://gitlab.com/jallbrit/bonsai.sh), which was written in `bash` and was itself a port of [this bonsai tree generator](https://avelican.github.io/bonsai/) written in `javascript`.
|
|
163 |
This project wouldn't be here if it weren't for its *roots*! `cbonsai` is a newer version of [bonsai.sh](https://gitlab.com/jallbrit/bonsai.sh), which was written in `bash` and was itself a port of [this bonsai tree generator](https://avelican.github.io/bonsai/) written in `javascript`.
|
|
0 |
cbonsai(1)
|
|
1 |
|
|
2 |
# NAME
|
|
3 |
|
|
4 |
cbonsai - grow bonsai trees in your terminal
|
|
5 |
|
|
6 |
# SYNOPSIS
|
|
7 |
|
|
8 |
cbonsai [OPTION]...
|
|
9 |
|
|
10 |
# DESCRIPTION
|
|
11 |
|
|
12 |
cbonsai is a beautifully random bonsai tree generator.
|
|
13 |
|
|
14 |
# OPTIONS
|
|
15 |
|
|
16 |
*-l*, *--live*
|
|
17 |
live mode: show each step of growth
|
|
18 |
|
|
19 |
*-t*, *--time*=_TIME_
|
|
20 |
in live mode, wait TIME secs between steps of growth (must be larger than 0) [default: 0.03]
|
|
21 |
|
|
22 |
*-i*, *--infinite*
|
|
23 |
infinite mode: keep growing trees
|
|
24 |
|
|
25 |
*-w*, *--wait*=_TIME_
|
|
26 |
in infinite mode, wait TIME between each tree generation [default: 4.00]
|
|
27 |
|
|
28 |
*-S*, *--screensaver*
|
|
29 |
screensaver mode; equivalent to -liWC and quit on any keypress
|
|
30 |
|
|
31 |
*-m*, *--message*=_STR_
|
|
32 |
attach message next to the tree
|
|
33 |
|
|
34 |
*-b*, *--base*=_INT_
|
|
35 |
ascii-art plant base to use, 0 is none
|
|
36 |
|
|
37 |
*-c*, *--leaf*=_LIST_
|
|
38 |
list of comma-delimited strings randomly chosen for leaves
|
|
39 |
|
|
40 |
*-M*, *--multiplier*=_INT_
|
|
41 |
branch multiplier; higher -> more branching (0-20) [default: 5]
|
|
42 |
|
|
43 |
*-L*, *--life*=_INT_
|
|
44 |
life; higher -> more growth (0-200) [default: 32]
|
|
45 |
|
|
46 |
*-p*, *--print*
|
|
47 |
print tree to terminal when finished
|
|
48 |
|
|
49 |
*-s*, *--seed*=_INT_
|
|
50 |
seed random number generator
|
|
51 |
|
|
52 |
*-W*, *--save*=_FILE_
|
|
53 |
save progress to file [default: ~/.cache/cbonsai]
|
|
54 |
|
|
55 |
*-C*, *--load*=_FILE_
|
|
56 |
load progress from file [default: ~/.cache/cbonsai]
|
|
57 |
|
|
58 |
*-v*, *--verbose*
|
|
59 |
increase output verbosity
|
|
60 |
|
|
61 |
*-h*, *--help*
|
|
62 |
show help
|
|
63 |
|
|
64 |
# AUTHORS
|
|
65 |
|
|
66 |
Maintained by John Allbritten <me@johnallbritten.com>, who is assisted by other
|
|
67 |
open source contributors. For more information about cbonsai development, see
|
|
68 |
<https://gitlab.com/jallbrit/cbonsai>.
|