1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/print/teTeX-base/files/texdoctk.wrapper.in
Hiroki Sato 8164dfd28f Add a wrapper script for texdoctk(1).
PR:		ports/59553
Submitted by:	Rong-En Fan (rafan at infor dot org)
2006-05-20 16:40:55 +00:00

16 lines
376 B
Bash

#!/bin/sh
# $FreeBSD$
# Check if Tk module installed or not.
%%PREFIX%%/bin/perl -MTk -e '' 2>/dev/null
if [ $? -ne 0 ]; then
echo "You do not have Perl module Tk installed. To use $0,"
echo "install the p5-Tk package (x11-toolkits/p5-Tk)"
echo "(this package requires Perl 5.8 or higher)."
echo "Then, try it again."
exit 1
fi
exec %%PREFIX%%/bin/texdoctk.real "$@"