aboutsummaryrefslogtreecommitdiff
path: root/chinese/CJK/scripts/pre-build
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/CJK/scripts/pre-build')
-rw-r--r--chinese/CJK/scripts/pre-build26
1 files changed, 15 insertions, 11 deletions
diff --git a/chinese/CJK/scripts/pre-build b/chinese/CJK/scripts/pre-build
index 65fe313c8035..332e03c0b34f 100644
--- a/chinese/CJK/scripts/pre-build
+++ b/chinese/CJK/scripts/pre-build
@@ -1,15 +1,19 @@
#!/bin/sh
PATH=/bin:/usr/bin; export PATH
-#
-# Check to see if we have teTeX-0.9 installed, just grep ttf2pk
-# in mktexpk. Not a preferred method, but it seems there is no
+
+# 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 solving this.
-#
-if [ -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 that to function properly."
- echo "-------------------------------------------"
- exit 1
+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