This file is indexed.

preinst is in zsh-lovers 0.8.3-0ubuntu2.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
27
28
29
30
31
#!/bin/sh
# Filename:      preinst
# Purpose:       preinst script for package zsh-lovers
# Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports:   see http://grml.org/bugs/
# License:       This file is licensed under the GPL v2.
# Latest change: Sam Jun 18 19:34:55 CEST 2005 [mika]
################################################################################

set -e
TO_DIVERT="zsh.vim"
divert_gen() {
    DEXT=${3:-original}
    dpkg-divert --add --rename --package zsh-lovers \
        --divert $2/$1.$DEXT $2/$1 > /dev/null
}

case "$1" in
   install|upgrade)
	for cmd in $TO_DIVERT; do
        	divert_gen $cmd /usr/share/vim/syntax
    	done
     ;;
   *)
     echo "preinst called with unknown argument \`$1'" >&2
     exit 1
esac

exit 0

## END OF FILE #################################################################