rss2email/rss2email-r2e
Michael Schwendt 8657ef4b7b - Upgrade to 2.70.
- Update r2e wrapper script.
- Patch config.py loader (now first look in current dir like upstream,
  but if not found look for $HOME/.rss2email/config.py).
- Include config.py.example also in the documentation directory.
- Various minor spec file adjustments.
2011-01-12 19:55:37 +01:00

24 lines
498 B
Bash

#!/bin/sh
datadir=@datadir@
r2ehome=${datadir}/rss2email
cfgtemplate=${r2ehome}/config.py.example
dotr2e=${HOME}/.rss2email
if [ ! -e ${dotr2e} ]
then
mkdir ${dotr2e}
fi
if [ ! -e ${dotr2e}/config.py ] && [ -e ${cfgtemplate} ]
then
cp -a ${cfgtemplate} ${dotr2e}/config.py
fi
if [ "${1}" = "--feedext" ] && [ "${2}" ]
then
fileext="${2}"
shift 2
exec python ${r2ehome}/rss2email.py ${dotr2e}/feeds.dat."${fileext}" "$@"
else
exec python ${r2ehome}/rss2email.py ${dotr2e}/feeds.dat "$@"
fi