From f0e37a95f1514bc5af12bb42614391c23fad5d94 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 30 Sep 2019 17:22:17 -0700 Subject: Fixed an issue with /etc/bb instead of /etc/xdg/bb and moved the startup command into bb.h with the other bb shell script stuff. --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b037aee..d0c953d 100644 --- a/Makefile +++ b/Makefile @@ -68,10 +68,11 @@ install: $(NAME) fi; \ [ ! "$$prefix" ] && prefix="/usr/local"; \ [ ! "$$sysconfdir" ] && sysconfdir=/etc; \ - mkdir -m 700 -pv "$$prefix/bin" "$$prefix/share/man/man1" "$$sysconfdir/bb" \ + mkdir -m 644 -pv "$$prefix/share/man/man1" \ + mkdir -m 755 -pv "$$prefix/bin" "$$sysconfdir/xdg/bb" \ && cp -v $(NAME) "$$prefix/bin/" \ && cp -v $(NAME).1 "$$prefix/share/man/man1/" \ - && cp -v bbstartup.sh bindings.bb "$$sysconfdir/bb/" + && cp -v bbstartup.sh bindings.bb "$$sysconfdir/xdg/bb/" uninstall: @prefix="$(PREFIX)"; \ @@ -83,6 +84,6 @@ uninstall: [ ! "$$sysconfdir" ] && sysconfdir=/etc; \ [ ! "$$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME=~/.config; \ echo "Deleting..."; \ - rm -rvf "$$prefix/bin/$(NAME)" "$$prefix/share/man/man1/$(NAME).1" "$$sysconfdir/bb"; \ - printf '\033[1mIf you created any config files in $$XDG_CONFIG_HOME/bb, you may want to delete them manually.\033[0m' + rm -rvf "$$prefix/bin/$(NAME)" "$$prefix/share/man/man1/$(NAME).1" "$$sysconfdir/xdg/bb"; \ + printf "\033[1mIf you created any config files in ~/.config/bb, you may want to delete them manually.\033[0m" -- cgit v1.2.3