Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # r2e
- #
- # Wrapper for rss2email.py.
- PYTHON=python
- CODEDIR=$(dirname $(readlink -f $0))
- PREFDIR=~/.rss2email
- set -e
- #
- # override $PREFDIR by passing '-d <dir>' ('-d' must be first).
- #
- if [ "$1" = "-d" ]; then
- if [ -z "$2" ]; then
- echo "r2e: -d missing directory" >&2
- exit 1
- fi
- PREFDIR="$2"
- shift 2
- fi
- if [ ! -d "${PREFDIR}" ]; then
- mkdir -p "${PREFDIR}"
- fi
- cd "$PREFDIR"
- exec $PYTHON ${CODEDIR}/rss2email.py feeds.dat "$@"
- #eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement