File: guile-libs.postinst

package info (click to toggle)
guile-2.0 2.0.13%2B1-5.1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 27,104 kB
  • sloc: ansic: 133,697; lisp: 67,499; sh: 4,762; makefile: 2,031; perl: 243; awk: 37
file content (31 lines) | stat: -rw-r--r-- 785 bytes parent folder | download | duplicates (5)
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

set -e

case "$1" in
  configure)
    if test -d /usr/share/slib; then
      dpkg-trigger /usr/share/slib
    fi
    ;;
  triggered)
    case " $2 " in
      *" /usr/share/slib "*)
        # Configure slib support.
        if test -d /usr/share/slib
        then
          # Uncomment the code below whenever SLIB supports Guile 2.0.
          echo "SLIB does not support Guile 2.0 yet.  Ignoring."
          #(cd /usr/share/guile/@DEB_SRC_EFF_VER@ && ln -sf ../../slib .)
          #/usr/lib/guile-@DEB_SRC_EFF_VER@/bin/guile -c \
          #  "(use-modules (ice-9 slib)) (require 'new-catalog)"
        else
        # slib isn't installed -- clean up symlink.
          rm -f /usr/share/guile/@DEB_SRC_EFF_VER@/slib
        fi
        ;;
    esac
    ;;
esac

#DEBHELPER#