projects
/
rss2email.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f88c404
)
wrapper
author
David Watson
<dwatson@debian.org>
Mon, 18 Apr 2011 08:41:04 +0000
(10:41 +0200)
committer
Matěj Cepl
<mcepl@redhat.com>
Mon, 18 Feb 2013 19:14:45 +0000
(20:14 +0100)
r2e
patch
|
blob
|
history
diff --git
a/r2e
b/r2e
index e582fae8f8343152c4974c4fe459bb8c562a2702..ed735cf1aa813f822fb9aec09b28dead81cbe3c4 100755
(executable)
--- a/
r2e
+++ b/
r2e
@@
-1,2
+1,16
@@
#!/bin/sh
-python rss2email.py feeds.dat $*
+set -e
+dir=~/.rss2email
+if [ "$1" = "-d" ]; then
+ if [ -z "$2" ]; then
+ echo "r2e: -d missing directory" >&2
+ exit 1
+ fi
+ dir="$2"
+ shift 2
+fi
+if [ ! -d "$dir" ]; then
+ mkdir -p "$dir"
+fi
+cd "$dir"
+exec python /usr/share/rss2email/rss2email.py feeds.dat $*