1999-03-08 23:03:33 +01:00
|
|
|
#!/bin/sh
|
1999-09-10 12:10:34 +02:00
|
|
|
PATH=/bin:/usr/bin; export PATH
|
2000-01-24 07:28:34 +01:00
|
|
|
|
|
|
|
# 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
|
2000-10-04 16:54:30 +02:00
|
|
|
# other way identifying whether teTeX 1.0 or above is installed.
|
2000-01-24 07:28:34 +01:00
|
|
|
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
|
1999-03-08 23:03:33 +01:00
|
|
|
fi
|