Use '```' to mark code blocks

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2023-10-29 14:45:21 +01:00
parent a73b57ce50
commit 910acafbc0

View file

@ -47,26 +47,26 @@ Building Timewarrior yourself requires
There are two ways to retrieve the Timewarrior sources: There are two ways to retrieve the Timewarrior sources:
* Clone the repository from GitHub, * Clone the repository from GitHub,
```
git clone --recurse-submodules https://github.com/GothenburgBitFactory/timewarrior git clone --recurse-submodules https://github.com/GothenburgBitFactory/timewarrior
cd timewarrior cd timewarrior
```
* Or download the tarball with curl, * Or download the tarball with curl,
```
curl -O https://github.com/GothenburgBitFactory/timewarrior/releases/download/v1.6.0/timew-1.6.0.tar.gz curl -O https://github.com/GothenburgBitFactory/timewarrior/releases/download/v1.6.0/timew-1.6.0.tar.gz
```
and expand the tarball and expand the tarball
```
tar xzf timew-1.6.0.tar.gz tar xzf timew-1.6.0.tar.gz
cd timew-1.6.0 cd timew-1.6.0
```
Build Timewarrior, optionally run the test suite, and install it. Build Timewarrior, optionally run the test suite, and install it.
```
cmake -DCMAKE_BUILD_TYPE=release cmake -DCMAKE_BUILD_TYPE=release
make make
[make test] [make test]
sudo make install sudo make install
```
This copies files into the right place (default under `/usr/local`), and installs man pages. This copies files into the right place (default under `/usr/local`), and installs man pages.
Add the optional parameter `-DCMAKE_INSTALL_PREFIX=/path/to/your/install/location` to the `cmake` command if you want to install Timewarrior at a location other than `/usr/local`. Add the optional parameter `-DCMAKE_INSTALL_PREFIX=/path/to/your/install/location` to the `cmake` command if you want to install Timewarrior at a location other than `/usr/local`.