diff options
Diffstat (limited to 'debian/postinst')
-rw-r--r-- | debian/postinst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/debian/postinst b/debian/postinst index 847a44a..88aa502 100644 --- a/debian/postinst +++ b/debian/postinst @@ -15,10 +15,12 @@ if [ -x /usr/sbin/guile1.4-slibconfig ] ; then /usr/sbin/guile1.4-slibconfig fi -if [ "$1" = "configure" ]; then - if [ -d /usr/doc -a ! -e /usr/doc/slib -a -d /usr/share/doc/slib ]; then - ln -sf ../share/doc/slib /usr/doc/slib - 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 |