This file is indexed.

postinst is in libglide3 2002.04.10ds1-9.

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
32
33
34
35
36
37
#!/bin/sh
set -e

. /usr/share/debconf/confmodule

if [ "$1" = "configure" ] ; then
  # Remove old question
  db_unregister libglide3/error || true

  db_get 'libglide3/driver'
  target='/usr/lib/libglide3.so.3'
  if [ "$RET" = "h3" ]; then
    drv_lib='/usr/lib/glide3/libglide3_h3.so.3.10.0';
  elif [ "$RET" = "h5" ]; then
    drv_lib='/usr/lib/glide3/libglide3_h5.so.3.10.0';
  else
    exit 1;
  fi

  if [ -e $target ] ; then {
    if [ -L $target ] ; then {
      rm $target;
    } else {
      db_subst libglide3/target_not_symlink target "$target"
      db_go
      exit 1;
    } fi
  } fi

  ln -s $drv_lib $target
fi

# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
	ldconfig
fi
# End automatically added section