Codebase list cbonsai / 09291d8
Import upstream version 1.3.1 Debian Janitor 1 year, 11 months ago
4 changed file(s) with 103 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
00 cbonsai
1 cbonsai.1
33 CFLAGS += -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-qual -pedantic $(shell $(PKG_CONFIG) --cflags ncursesw panelw)
44 LDLIBS = $(shell $(PKG_CONFIG) --libs ncursesw panelw || echo "-lncursesw -ltinfo -lpanelw")
55 PREFIX = /usr/local
6 MANDIR = $(PREFIX)/share/man
67
78 cbonsai: cbonsai.c
89
9 install: cbonsai
10 cbonsai.1: cbonsai.scd
11 scdoc <$< >$@
12
13 install: cbonsai cbonsai.1
1014 mkdir -p $(DESTDIR)$(PREFIX)/bin
15 mkdir -p $(DESTDIR)$(MANDIR)/man1
1116 install -m 0755 cbonsai $(DESTDIR)$(PREFIX)/bin/cbonsai
17 install -m 0644 cbonsai.1 $(DESTDIR)$(MANDIR)/man1/cbonsai.1
1218
1319 uninstall:
1420 rm -f $(DESTDIR)$(PREFIX)/bin/cbonsai
21 rm -f $(DESTDIR)$(MANDIR)/man1/cbonsai.1
1522
1623 clean:
1724 rm -f cbonsai
25 rm -f cbonsai.1
1826
1927 .PHONY: install uninstall clean
1818 <img src="https://repology.org/badge/vertical-allrepos/cbonsai.svg" alt="Packaging status" align="right">
1919 </a>
2020
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`!
2222
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.
2424
2525 ### Debian-based
2626
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 ```
2837
2938 ### MacOS
3039
3645 ```
3746
3847 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 ```
3959
4060 ### Manual
4161
140160
141161 ## Inspiration
142162
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>.