File: linuxdoc-tools.postinst

package info (click to toggle)
linuxdoc-tools 0.9.72-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,100 kB
  • ctags: 3,197
  • sloc: ansic: 16,299; perl: 3,295; sh: 995; makefile: 812; lex: 566; lisp: 309
file content (26 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

set -e

case $1 in
    configure)
	# For info about why we do not currently use dh_installtex, see
        # #600013: tex-common:
	# dpkg-reconfigure doesn't work on packages calling update-texmf-config
	if [ "$DPKG_RUNNING_VERSION" ]; then
	    # If run under dpkg control call update-texmf-config, which
	    # will enable appropriate triggers
	    if which update-texmf-config 2>&1 > /dev/null; then
		update-texmf-config lsr
	    fi
	else
	    # Otherwise (e.g. on reconfigure) rebuild ls-R directly.
	    if which mktexlsr 2>&1 > /dev/null; then
		mktexlsr /usr/share/texmf
	    fi
	fi
	;;
    *)
esac

#DEBHELPER#