Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
v2.3.1
Browse files Browse the repository at this point in the history
changed static cmd data structure and dependent code
fixed bash completion
fixed some path problems caused by Makefile and sudo
updated readme
updated manpage
  • Loading branch information
SchokiCoder committed Sep 28, 2022
1 parent e35ad55 commit 80fd3c8
Show file tree
Hide file tree
Showing 8 changed files with 625 additions and 618 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "smng"
version = "2.3.0"
version = "2.3.1"
authors = ["SchokiCoder <afschoknecht@gmail.com>"]
repository = "https://github.com/SchokiCoder/smng"
edition = "2018"
Expand Down
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ release:
cargo rustc --release

mkconfig:
echo "/home/"${USER}"/.smng/worktimes.db" >> "db_path"

prepare: release mkconfig

install-config:
mkdir -p /etc/smng.d
echo "/home/"${USER}"/.smng/worktimes.db" >> "/etc/smng.d/db_path"
cp "db_path" "/etc/${APP_NAME}.d/db_path"

install-manpage:
mkdir -p /usr/local/man/man1
Expand All @@ -20,7 +25,7 @@ install-manpage:
install-completion:
cp completion.bash /usr/share/bash-completion/completions/${APP_NAME}

install-utils: mkconfig install-manpage install-completion
install-utils: install-config install-manpage install-completion

install: install-utils
mkdir -p ${INSTALL_BIN_DIR}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Personal working time manager, to monitor the time you worked on each project.
```
git clone https://github.com/SchokiCoder/smng.git
cd smng
make release
make prepare # DO NOT USE SUDO HERE
sudo make install
```

Expand Down
4 changes: 2 additions & 2 deletions completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

_smng_completions()
{
COMPREPLY+=($(compgen -W "help about add-project show-projects edit-project archive-project delete-project record status stop add-record edit-record-project edit-record-begin edit-record-end edit-record-description delete-record transfer-project-records swap-project-records show-week show-month show-project-records merge-db show-config-path show-db-path" "${COMP_WORDS[1]}"))
COMPREPLY+=($(compgen -W "help about add-project show-projects edit-project archive-project delete-project record status stop add-record edit-record-project edit-record-begin edit-record-end edit-record-description delete-record transfer-project-records swap-project-records show-week show-month show-project-records merge-db show-cfg-path show-db-path" "${COMP_WORDS[1]}"))
}

complete -F _smng_completions smng
complete -F _smng_completions smng
3 changes: 2 additions & 1 deletion manpage.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "SMNG" "1" "24 September 2022" "smng 2.3.0" ""
.TH "SMNG" "1" "28 September 2022" "smng 2.3.1" ""
.hy

.SH NAME
Expand Down Expand Up @@ -201,3 +201,4 @@ If not, see <https://www.gnu.org/licenses/>.

.SH AUTHOR
Andy Frank Schoknecht

Loading

0 comments on commit 80fd3c8

Please sign in to comment.