From 0fe685c34c5cdbff278b70c98241b0aa7c5bd6ed Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Tue, 16 Jun 2020 20:05:30 -0400 Subject: moved hashing to shellscript to check for posts removes dependency on sha2 crate and allows users to choose their own hashing algorithm easily. now copies clinte.json to $HOME/.clinte.json once the posts are viewed. a shellscript can be used to compare the hash of the global clinte.json to the hash of the copy. an example script is supplied. on `make install` the example script is installed to /etc/profile.d/, where it will be run for users on login. --- Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7d43699..366d375 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,7 @@ install: install -m755 target/release/clinte $(BINDIR) @if [ -f "$(DBDIR)/clinte.json" ]; then printf "\n%s\n" "clinte.json exists. Skipping ..."; else install -m666 clinte.json "$(DBDIR)"; fi + @if [ -e /etc/profile.d ]; then printf "%s\n" "Installing check_new_clinte_posts.sh to /etc/profile.d" && install -m644 check_new_clinte_posts.sh /etc/profile.d/; fi @printf "\n%s\n" "...Done!" -- cgit 1.4.1-2-gfad0