openbsd-ports/graphics/gif2png/files/web2png
brad d91101fc10 - @PREFIX@ = ${LOCALBASE} -> ${PREFIX}
- make use of ${LOCALBASE} in web2png wrapper
2000-02-01 20:28:50 +00:00

20 lines
451 B
Bash

#!/bin/sh
#
# Wrapper for the real web2png. Checks whether Python is installed,
# and runs the real web2png or alerts the user, as appropriate.
#
LOCALBASE=@LOCALBASE@
PREFIX=@PREFIX@
if [ -e $LOCALBASE/bin/python ]; then
exec $PREFIX/libexec/web2png.bin
else
cat <<EOF
The web2png 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