This file is indexed.

preinst is in ketm 0.0.6-22.

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
#! /bin/sh
# preinst script for ketm

set -e

scores=/var/games/ketm.scores

case "$1" in
  install|upgrade)
    # old versions of ketm (< 0.0.6-20) will remove high score file
    # on upgrade, so rescue it
    if $(dpkg --compare-versions "$2" lt-nl 0.0.6-20) && [ -e $scores ] ; then
      cp -p $scores $scores.tmp
    fi
    ;;
esac



exit 0