Revert "Set /home/patrick/track as default tracking directory"

This reverts commit 4d38ca81da.
This commit is contained in:
Patrick Lipka 2021-12-20 15:55:29 +01:00
parent 4d38ca81da
commit baae48ea2f
2 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@ LDFLAGS := -lreadline
PREFIX ?= /usr/local
USER_NAME ?= $(USER)
TRACKING_DIR ?= $(HOME)/track
TRACKING_DIR ?= /home/$(USER)/track
BIN_PATH := bin
SRC_PATH := src
@ -43,7 +43,6 @@ install: all
uninstall:
rm -rf $(PREFIX)/bin/tt
rm -rf $(PREFIX)/etc/tt.conf
@echo "tt has been uninstalled. Note: tracking data is still present at $(TRACKING_DIR)"
clean:
rm -rf $(SRC_PATH)/*.o

View File

@ -23,7 +23,7 @@ The following variables can be used to configure the build:
* `CXX` - C++ compiler, defaults to `g++`
* `PREFIX` - install prefix, defaults to `/usr/local`
* `USER_NAME` - user name to be mentioned in monthly reports, defaults to `$USER`
* `TRACKING_DIR` - directory where tracking files are saved, defaults to `$HOME/track`
* `TRACKING_DIR` - directory where tracking files are saved, defaults to `/home/$USER/track`
The user name and tracking directory can also be set after installation by modifying `$PREFIX/etc/tt.conf`
@ -34,6 +34,8 @@ USER_NAME="<Your full name>" make
sudo make install
~~~~
Note that there is no `/home` directory on macOS. You may want to set `TRACKING_DIR=/Users/$USER/track`.
## Settings
The file `$PREFIX/etc/tt.conf` has the format `key=value` and contains the following settings:
* `user_name` - user name to be mentioned in monthly reports