openbsd-ports/mail/fetchmail/files/fetchmailconf
2000-07-23 22:42:52 +00:00

19 lines
450 B
Bash

#!/bin/sh
#
# Wrapper for the real fetchmailconf. Checks whether Python is installed,
# and runs the real fetchmailconf or alerts the user, as appropriate.
#
PREFIX=@PREFIX@
if [ -x $PREFIX/bin/python ]; then
exec $PREFIX/libexec/fetchmailconf.bin
else
cat <<EOF
The fetchmailconf program requires Python, which does not appear to be
installed on this system. Python can be found in the OpenBSD Ports
Collection under lang/python.
EOF
exit 1
fi