1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/chinese/CJK/scripts/pre-build
Kevin Lo b171a65110 Update to the lastest version.
PR: 21733
Submitted by: MAINTAINER
2000-10-04 14:54:30 +00:00

20 lines
758 B
Bash

#!/bin/sh
PATH=/bin:/usr/bin; export PATH
# Check if teTeX is installed.
if [ ! -f ${PREFIX}/share/texmf/doc/tetex/README ]; then
echo "-----------------------------------------"
echo "teTeX is not installed!"
echo "It's recommended to use CJK upon teTeX!"
echo "-----------------------------------------"
exit 1
# Juse grep for 1.0 is not a preferred method, but it seems there is no
# other way identifying whether teTeX 1.0 or above is installed.
elif [ -z "`head -1 ${PREFIX}/share/texmf/doc/tetex/README |grep 1\.0`" ]; then
echo "-------------------------------------------"
echo " You do not have teTeX-1.0 installed!"
echo " CJK 4.3.0 needs it to function properly."
echo "-------------------------------------------"
exit 1
fi