File: postinst

package info (click to toggle)
tex4ht 20011214-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,272 kB
  • ctags: 992
  • sloc: xml: 17,548; ansic: 9,389; makefile: 129; sh: 43; sed: 8
file content (22 lines) | stat: -rw-r--r-- 584 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

# configuration file (tex4ht.env) is located in /etc/texmf/tex4ht in Debian,
# but kpathsea will look in /usr/share/texmf/tex4ht etc, so set up link:
ln -sf /etc/tex4ht/tex4ht.env /usr/share/texmf/tex4ht/tex4ht.env

# a trivial symlink, to simplify viewing the documentation:
cd /usr/share/doc/texmf/tex4ht
ln -sf mn.html index.html

# use alternatives system for ht script:
if [ "$1" = "configure" ] ; then
  update-alternatives --quiet --install /usr/bin/ht ht /usr/bin/tex4ht-ht 40
  fi

if command -v texhash > /dev/null 2>&1 ; then
  texhash
  fi

#DEBHELPER#