diff --git a/.gitignore b/.gitignore index cfcba2c..7231784 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,4 @@ *.pyc *.core -text-scraping.py -text-scraper.py notes notes.md diff --git a/README.md b/README.md index 7451474..cdeaec9 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,11 @@ Helpful scripts to get information from http://metal-archives.com ## installation -1. install python3 and python3-pip from your package manager (UNIX), or http://python.org/getit/windows (Windows) +1. install `python3` and `python3-pip` from your package manager (UNIX), or http://python.org/getit/windows (Windows) 2. install the required libs: `pip3 install urllib bs4 requests lyricfetcher` +3. put them somewhere in your $PATH, (or alternatively run `sudo make install`) + +## screenshots ### releases ![releases.png](res/releases.png) @@ -31,9 +34,8 @@ Helpful scripts to get information from http://metal-archives.com ### location ![location.png](res/location.png) +------ Originally these were methods from http://github.com/mitchweaver/diskvlt-bot But as they are so handy, I now use them to categorize and tag my music. - - diff --git a/makefile b/makefile new file mode 100644 index 0000000..587c0af --- /dev/null +++ b/makefile @@ -0,0 +1,28 @@ +PREFIX = /usr/local + +.PHONY: all install uninstall + +all: install + +install: + @echo 'Installing metal-archives scripts...' + install -Dm755 band $(DESTDIR)$(PREFIX)/bin/band + install -Dm755 cover $(DESTDIR)$(PREFIX)/bin/cover + install -Dm755 genre $(DESTDIR)$(PREFIX)/bin/genre + install -Dm755 location $(DESTDIR)$(PREFIX)/bin/location + install -Dm755 logo $(DESTDIR)$(PREFIX)/bin/logo + install -Dm755 lyrics $(DESTDIR)$(PREFIX)/bin/lyrics + install -Dm755 releases $(DESTDIR)$(PREFIX)/bin/releases + install -Dm755 songs $(DESTDIR)$(PREFIX)/bin/songs + +uninstall: + @echo 'Uninstalling metal-archives scripts...' + rm -f $(DESTDIR)$(PREFIX)/bin/band + rm -f $(DESTDIR)$(PREFIX)/bin/cover + rm -f $(DESTDIR)$(PREFIX)/bin/genre + rm -f $(DESTDIR)$(PREFIX)/bin/location + rm -f $(DESTDIR)$(PREFIX)/bin/logo + rm -f $(DESTDIR)$(PREFIX)/bin/lyrics + rm -f $(DESTDIR)$(PREFIX)/bin/releases + rm -f $(DESTDIR)$(PREFIX)/bin/songs +