File: postinst

package info (click to toggle)
slib 3a1-4.2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,924 kB
  • ctags: 4,637
  • sloc: lisp: 25,400; makefile: 396; sh: 246
file content (31 lines) | stat: -rw-r--r-- 1,037 bytes parent folder | download
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

install-info --quiet --section "The Algorithmic Language Scheme" \
  "The Algorithmic Language Scheme" \
  --description="The SLIB portable Scheme library" \
  /usr/share/info/slib.info.gz

# OK.  This is bad because it really should be in the guile config or
# in some emacs-commond sort of package.  Now we conditionally run it.
# one of these probably shouldn't exist, but don't know which and
# probably shourld support the older.
if [ -x /usr/sbin/guile1.4-slibconfig ] ; then
    echo Running /usr/sbin/guile1.4-slibconfig
    /usr/sbin/guile1.4-slibconfig
fi

if [ -x /usr/bin/guile-1.6 -a -e /usr/share/guile/1.6/slib ] ; then
    rm -f /usr/share/guile/1.6/slibcat
    /usr/bin/guile-1.6 -c "(use-modules (ice-9 slib)) (require 'new-catalog)"
    if [ -e /usr/share/guile/1.6/slibcat ] ; then
      chmod 644 /usr/share/guile/1.6/slibcat
    fi
fi

# doc base support
if [ "$1" = configure ]; then
    if command -v install-docs >/dev/null 2>&1; then
        install-docs -i /usr/share/doc-base/slib
    fi
fi