32 lines
732 B
Bash
Executable File
32 lines
732 B
Bash
Executable File
#!/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.2.
|
|
echo "SLIB does not support Guile 2.2 yet. Ignoring."
|
|
#(cd /usr/share/guile/2.2 && ln -sf ../../slib .)
|
|
#/usr/lib/guile-2.2/bin/guile -c \
|
|
# "(use-modules (ice-9 slib)) (require 'new-catalog)"
|
|
else
|
|
# slib isn't installed -- clean up symlink.
|
|
rm -f /usr/share/guile/2.2/slib
|
|
fi
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
|
|
|