File: libglide3.postinst

package info (click to toggle)
glide 2002.04.10ds1-15
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 59,556 kB
  • sloc: ansic: 290,125; asm: 23,305; sh: 8,089; pascal: 3,854; makefile: 1,276; perl: 73
file content (33 lines) | stat: -rw-r--r-- 621 bytes parent folder | download | duplicates (2)
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
#!/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

#DEBHELPER#