[Lunar-commits] <moonbase> thailatex: better setup & cleanup

Paul Bredbury brebs at lunar-linux.org
Thu Jan 13 16:37:59 CET 2011


commit 1d4c4be4d0293dce8261eab7b6d64330718454be
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Thu Jan 13 22:37:59 2011 +0700

    thailatex: better setup & cleanup
---
 zbeta/thailatex/POST_INSTALL |   11 +++++------
 zbeta/thailatex/POST_REMOVE  |    9 +++++++++
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/zbeta/thailatex/POST_INSTALL b/zbeta/thailatex/POST_INSTALL
index b8eaae8..ed25a24 100644
--- a/zbeta/thailatex/POST_INSTALL
+++ b/zbeta/thailatex/POST_INSTALL
@@ -1,6 +1,5 @@
-# From postinst at http://packages.ubuntu.com/source/lucid/thailatex
-# This is not in BUILD because otherwise there is a file ownership conflict
-# with texlive-texmf, and babel.sty ends up mysteriously deleted.
-sed -i '/thai.ldf/d' /usr/share/texmf-dist/tex/generic/babel/babel.sty  &&
-sed -i '/turkish/i\
-\\DeclareOption{thai}{\\input{thai.ldf}}' /usr/share/texmf-dist/tex/generic/babel/babel.sty
+# Adds thai.ldf to /usr/share/texmf-dist/tex/generic/babel/babel.sty
+/usr/sbin/sync-babel > /dev/null
+
+# Enables thai.map in /usr/share/texmf/ls-R
+/usr/sbin/sync-thailatex > /dev/null
diff --git a/zbeta/thailatex/POST_REMOVE b/zbeta/thailatex/POST_REMOVE
new file mode 100644
index 0000000..207b3f0
--- /dev/null
+++ b/zbeta/thailatex/POST_REMOVE
@@ -0,0 +1,9 @@
+# As in /usr/sbin/sync-babel
+sed -i -e '/thai.ldf/d' /usr/share/texmf-dist/tex/generic/babel/babel.sty
+
+# As in /usr/sbin/sync-thailatex
+# Prevents "can't find foo.{tex,sty}" errors
+mktexlsr --quiet
+
+updmap-sys --quiet --disable thai.map
+updmap-sys --quiet


More information about the Lunar-commits mailing list