d91101fc10
- make use of ${LOCALBASE} in web2png wrapper
20 lines
451 B
Bash
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
|