Add make file Makefile.
This commit is contained in:
parent
c42894d52d
commit
fb28a5a03b
3 changed files with 35 additions and 10 deletions
18
Makefile
Normal file
18
Makefile
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
INSTALL = /bin/install -c
|
||||||
|
DESTDIR =
|
||||||
|
PREFIX = /usr/local
|
||||||
|
BINDIR = /bin
|
||||||
|
CSSDIR = /share/feedr/css
|
||||||
|
XSLDIR = /share/feedr/xsl
|
||||||
|
|
||||||
|
all: install
|
||||||
|
|
||||||
|
install:
|
||||||
|
mkdir -p $(DESTDIR)$(CSSDIR)
|
||||||
|
mkdir -p $(DESTDIR)$(XSLDIR)
|
||||||
|
$(INSTALL) -m644 css/* $(DESTDIR)$(PREFIX)$(CSSDIR)/
|
||||||
|
$(INSTALL) -m644 xsl/* $(DESTDIR)$(PREFIX)$(XSLDIR)/
|
||||||
|
$(INSTALL) -m644 LICENSE $(DESTDIR)$(PREFIX)/share/licenses/feedr/
|
||||||
|
$(INSTALL) -m644 README.md $(DESTDIR)$(PREFIX)/share/doc/feedr/
|
||||||
|
$(INSTALL) -m755 feedr.desktop $(DESTDIR)$(PREFIX)/share/applications/feedr.desktop
|
||||||
|
$(INSTALL) -m755 feedr.sh $(DESTDIR)$(PREFIX)$(BINDIR)/feedr
|
10
README.md
10
README.md
|
@ -5,8 +5,14 @@ files directly from your desktop.
|
||||||
|
|
||||||
## Functionality
|
## Functionality
|
||||||
|
|
||||||
With a click, Feedr will open and render given XML based syndication files of
|
Feedr will open and render given XML based syndication files of type Atom
|
||||||
type Atom Syndication Format, RDF, and RSS.
|
Syndication Format, RDF, and RSS, upon a click on a file.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```
|
||||||
|
make PREFIX=/usr/local install
|
||||||
|
```
|
||||||
|
|
||||||
## Customization
|
## Customization
|
||||||
|
|
||||||
|
|
17
feedr.sh
17
feedr.sh
|
@ -6,12 +6,6 @@ if [ $# -ne 1 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function browser() {
|
|
||||||
local URL="$1";
|
|
||||||
xdg-open $URL || sensible-browser $URL || x-www-browser $URL || gnome-open $URL;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# Get the XML file and stylesheet file from the arguments
|
# Get the XML file and stylesheet file from the arguments
|
||||||
XML_FILE="$1"
|
XML_FILE="$1"
|
||||||
XML_FILENAME=$(basename $XML_FILE)
|
XML_FILENAME=$(basename $XML_FILE)
|
||||||
|
@ -52,11 +46,18 @@ fi
|
||||||
|
|
||||||
export WEBKIT_DISABLE_DMABUF_RENDERER=1
|
export WEBKIT_DISABLE_DMABUF_RENDERER=1
|
||||||
|
|
||||||
|
for browser in $BROWSER falkon otter-browser qupzilla konqueror palemoon badwolf qutebrowser opera opera-beta opera-developer vivaldi vivaldi-beta vivaldi-snapshot chromium chrome luakit midori epiphany lynx w3m elinks vimb surf iceweasel waterfox firefox-aurora firefox; do
|
||||||
|
if command -v $browser > /dev/null 2>&1; then
|
||||||
|
exec $browser "$XML_FILE_TMP"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
#badwolf "$XML_FILE_TMP"
|
#badwolf "$XML_FILE_TMP"
|
||||||
#chrome --new-window "$XML_FILE_TMP"
|
#chrome --new-window "$XML_FILE_TMP"
|
||||||
#falkon "$XML_FILE_TMP" --new-window
|
#falkon "$XML_FILE_TMP" --new-window
|
||||||
#firefox --new-window "$XML_FILE_TMP"
|
#firefox --new-window "$XML_FILE_TMP"
|
||||||
#luakit "$XML_FILE_TMP"
|
#luakit "$XML_FILE_TMP"
|
||||||
otter-browser "$XML_FILE_TMP"
|
#otter-browser "$XML_FILE_TMP"
|
||||||
qutebrowser "$XML_FILE_TMP"
|
#qutebrowser "$XML_FILE_TMP"
|
||||||
#xdg-open "$XML_FILE_TMP"
|
#xdg-open "$XML_FILE_TMP"
|
||||||
|
|
Loading…
Reference in a new issue