File: linuxdoc-tools.postinst

package info (click to toggle)
linuxdoc-tools 0.9.73-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,112 kB
  • sloc: ansic: 16,299; perl: 3,285; sh: 995; makefile: 812; lex: 566; lisp: 309
file content (26 lines) | stat: -rw-r--r-- 631 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 > /dev/null 2>&1; then
		update-texmf-config lsr
	    fi
	else
	    # Otherwise (e.g. on reconfigure) rebuild ls-R directly.
	    if which mktexlsr > /dev/null 2>&1; then
		mktexlsr /usr/share/texmf
	    fi
	fi
	;;
    *)
esac

#DEBHELPER#