From 9118040998b307df3305ad174a3e3e1971a8c32b Mon Sep 17 00:00:00 2001 From: Swindles McCoop <65102316+swindlesmccoop@users.noreply.github.com> Date: Tue, 22 Nov 2022 21:56:34 -0500 Subject: [PATCH 1/3] Delete installer.sh --- installer.sh | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100755 installer.sh diff --git a/installer.sh b/installer.sh deleted file mode 100755 index 3fab729..0000000 --- a/installer.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -PREFIX=/usr/local/bin - -INSTALL() { - echo "installing to $PREFIX ..." - cp cmus-notify.pl $PREFIX/cmus-notify - chmod 755 $PREFIX/cmus-notify - echo "installed" -} - -UNINSTALL() { - rm $PREFIX/cmus-notify - echo "removed $PREFIX/cmus-notify" - echo "uninstalled. config and cache files may remain in ~/.config/cmus" -} - -[ -n "$1" ] || exit -[ "$1" = "install" ] && INSTALL -[ "$1" = "uninstall" ] && UNINSTALL From 2c19727e81e32acb4138ea7734934c8f96595260 Mon Sep 17 00:00:00 2001 From: Swindles McCoop <65102316+swindlesmccoop@users.noreply.github.com> Date: Tue, 22 Nov 2022 22:01:55 -0500 Subject: [PATCH 2/3] Create Makefile --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3efe473 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +PREFIX=/usr/local + +install: + @printf "Installing to ${DESTDIR}${PREFIX}/bin...\n" + install -Dm755 cmus-notify.pl ${DESTDIR}${PREFIX}/bin/cmus-notify + @printf "Installed!\n" + +uninstall: + rm ${PREFIX}/bin/cmus-notify + @printf "Removed ${PREFIX}/bin/cmus-notify.\n" + @printf "Configuration and cache files may still be present in cmus configuration directory." From 8f6df58e72759ce17254bad6e2692e2c96db2295 Mon Sep 17 00:00:00 2001 From: Swindles McCoop <65102316+swindlesmccoop@users.noreply.github.com> Date: Tue, 22 Nov 2022 22:02:24 -0500 Subject: [PATCH 3/3] Add Make references --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e1d6bd..ee13b26 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,10 @@ A cmus status notification program made for easy configuration and portability. * `git clone https://github.com/dcx86r/cmus-notify` * install `HTML::Entities` module from CPAN -* `[sudo] sh installer.sh install` +* `[sudo] make install` ...and to uninstall: -* `[sudo] sh installer.sh uninstall` +* `[sudo] make uninstall` If using a previous version, uninstall old version before installing new one