add makefile ; edit readme

fixup

edit readme
This commit is contained in:
Mitch Weaver
2018-04-23 18:27:22 +02:00
parent 0b0cd0bf77
commit 55a1fef7ca
3 changed files with 33 additions and 5 deletions

2
.gitignore vendored
View File

@@ -1,6 +1,4 @@
*.pyc *.pyc
*.core *.core
text-scraping.py
text-scraper.py
notes notes
notes.md notes.md

View File

@@ -4,8 +4,11 @@ Helpful scripts to get information from http://metal-archives.com
## installation ## 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` 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
![releases.png](res/releases.png) ![releases.png](res/releases.png)
@@ -31,9 +34,8 @@ Helpful scripts to get information from http://metal-archives.com
### location ### location
![location.png](res/location.png) ![location.png](res/location.png)
------
Originally these were methods from http://github.com/mitchweaver/diskvlt-bot 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. But as they are so handy, I now use them to categorize and tag my music.

28
makefile Normal file
View File

@@ -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