blob: 2f12dcf5788cef02a4f23230d66ab4a52e91310c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
# Patch/unpatch thailatex babel.sty with that of tetex
# Written by Theppitak Karoonboonyanan <thep@linux.thai.net>
# License: GPL
BABELSTY=`kpsewhich babel.sty`
if [ "x$BABELSTY" = "x" ]; then
echo "Cannot find babel.sty to update"
exit 1
fi
echo "Updating $BABELSTY"
sed -i -e '/thai.ldf/d' $BABELSTY
THAILDF=`kpsewhich thai.ldf`
if [ "x$THAILDF" != "x" ]; then
sed -i -e '/turkish/i\
\\DeclareOption{thai}{\\input{thai.ldf}}' $BABELSTY
fi
|