| 1 |
#!/bin/sh -e |
| 2 |
# |
| 3 |
# postinst script for the Debian GNU/Linux libgsl0 package |
| 4 |
# |
| 5 |
# Written and GPL'ed by Dirk Eddelbuettel <[email protected]> |
| 6 |
|
| 7 |
#DEBHELPER# |
| 8 |
|
| 9 |
case "$1" in |
| 10 |
|
| 11 |
configure) |
| 12 |
# Previous versions installed libgsl in /usr/lib/gsl/ |
| 13 |
# Due to a typo in gsl (<= 0.5), this might be left over |
| 14 |
if grep -qs ^/usr/lib/gsl\$ /etc/ld.so.conf |
| 15 |
then |
| 16 |
sed '/^\/usr\/lib\/gsl$/d' /etc/ld.so.conf \ |
| 17 |
> /etc/ld.so.conf.gsl-tmp |
| 18 |
mv /etc/ld.so.conf.gsl-tmp /etc/ld.so.conf |
| 19 |
fi |
| 20 |
;; |
| 21 |
|
| 22 |
upgrade|abort-upgrade|abort-remove|abort-deconfigure) |
| 23 |
;; |
| 24 |
|
| 25 |
*) |
| 26 |
echo "postinst called with unknown argument \`$1'" >&2 |
| 27 |
;; |
| 28 |
|
| 29 |
esac |
| 30 |
|
| 31 |
exit 0 |
| 32 |
|