-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from neniuideo/master
install makefile and minor fixes
- Loading branch information
Showing
4 changed files
with
56 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# | ||
# Makefile for tvspielfilm2xmltv | ||
# | ||
|
||
GRABBER = tvspielfilm2xmltv | ||
|
||
DESTDIR ?= | ||
PREFIX ?= /usr/local | ||
MANDIR = $(PREFIX)/share/man | ||
BINDIR = $(PREFIX)/bin | ||
APPDIR = $(PREFIX)/share/$(GRABBER) | ||
|
||
install: | ||
# Install the progam files | ||
@install -D tvspielfilm2xmltv.py $(DESTDIR)/$(APPDIR)/tvspielfilm2xmltv.py | ||
@install -d $(DESTDIR)/$(APPDIR)/tvsp2xmltv | ||
@install -D tvsp2xmltv/*.py $(DESTDIR)/$(APPDIR)/tvsp2xmltv | ||
# Install the config | ||
@install -d $(DESTDIR)/etc/$(GRABBER) | ||
@install -b tvspielfilm2xmltv.ini $(DESTDIR)/etc/$(GRABBER)/tvspielfilm2xmltv.ini | ||
# Install the man page | ||
@install -d $(DESTDIR)/$(MANDIR)/man1/ | ||
@gzip -c9 $(GRABBER).1 > $(DESTDIR)/$(MANDIR)/man1/$(GRABBER).1.gz | ||
# create the app link | ||
@install -d $(DESTDIR)/$(BINDIR) | ||
@rm -f $(DESTDIR)/$(BINDIR)/$(GRABBER) | ||
@ln -s $(DESTDIR)/$(APPDIR)/tvspielfilm2xmltv.py $(DESTDIR)/$(BINDIR)/$(GRABBER) | ||
# Install the Grabber API | ||
@install -d $(DESTDIR)/var/lib/epgsources/$(GRABBER)-img | ||
@chmod ugo+w $(DESTDIR)/var/lib/epgsources | ||
@chmod ugo+w $(DESTDIR)/var/lib/epgsources/$(GRABBER)-img | ||
|
||
@echo "Now create the controll file with \"$(GRABBER) -c\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[DEFAULT] | ||
destination_file = tvspielfilm2xmltv2.xml | ||
control_file = tvspielfilm2xmltv | ||
destination_file = /var/lib/epgsources/tvspielfilm2xmltv.xmltv | ||
control_file = /var/lib/epgsources/tvspielfilm2xmltv | ||
grab_today = True | ||
|