From 7e77b9566ae2d09e144f7ba49aebe5e64f8eda46 Mon Sep 17 00:00:00 2001 From: nekobit Date: Fri, 14 Oct 2022 13:35:22 +0000 Subject: [PATCH] Improve docs FossilOrigin-Name: dd9f17a042796f045536f9586710038ec0ffdd759411ab9912e57cdfe17e2f56 --- docs/INSTALL.md | 20 +++++++++++++++----- src/main.c | 1 - 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/INSTALL.md b/docs/INSTALL.md index eb84be6..0309faa 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -8,23 +8,33 @@ For the following GNU/Linux distributions, you will need the following libraries ###### Debian -`# apt install libcurl4-gnutls-dev libpcre2-dev libfcgi-dev base-devel` +`# apt install libcurl4-gnutls-dev libpcre2-dev libfcgi-dev build-essential perl libperl-dev libtemplate-perl` ###### Void GNU/Linux -`# xbps-install libcurl libcurl-devel base-devel pcre2 pcre2-devel fcgi fcgi-devel` +`# xbps-install libcurl libcurl-devel base-devel pcre2 pcre2-devel fcgi fcgi-devel perl-Template-Toolkit` ###### Arch -`# pacman -S curl base-devel` +`# pacman -S curl base-devel perl perl-template-toolkit` + +###### Gentoo + +TODO Create a copy of `config.def.h` at `config.h`, edit the file with your information -Run `make`. This will also clone mastodont-c, and compile both it and Treebird. +Run `make`. (**hint:** Pass -j3 to speed up compilation). This will also clone mastodont-c, and compile both it and Treebird. If you `fossil update` any changes, `make update` should be run after updating -## Perl dependencies +## Perl dependencies manual install + +**Note:** You **WONT** need to do this if your distribution above included all the deps (Template Toolkit) + +At the moment, all of them listed above do, but if your distro is nonstandard, keep reading: + +--- Treebird renders most of the content that you see in Perl using the Template Toolkit. diff --git a/src/main.c b/src/main.c index fdc1f90..adef162 100644 --- a/src/main.c +++ b/src/main.c @@ -208,7 +208,6 @@ static void* threaded_fcgi_start(void* arg) FCGX_Finish_r(&req); } - return NULL; } #else