~ubuntu-branches/ubuntu/hoary/atlas/hoary

« back to all changes in this revision

Viewing changes to debian/atlas2-sse2.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-01-16 15:16:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040116151646-xkd07y3qk10teqlk
Tags: 3.2.1ln-13
Fixed development alternatives to go with the new library locations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
5
 
if [ "$1" = "remove" ] || [ "$1" = "purge" ] ; then
6
 
        if grep -q '^/usr/lib/sse2/atlas$' /etc/ld.so.conf ; then
7
 
                grep -v '^/usr/lib/sse2/atlas$' /etc/ld.so.conf > /etc/ld.so.conf-atlas-tmp
 
5
if [ "$1" = "remove" ] ; then
 
6
        if grep -q '^/usr/lib/atlas/sse2$' /etc/ld.so.conf ; then
 
7
                grep -v '^/usr/lib/atlas/sse2$' /etc/ld.so.conf > /etc/ld.so.conf-atlas-tmp || true
 
8
                touch /etc/ld.so.conf-atlas-tmp
8
9
                chmod 0644 /etc/ld.so.conf-atlas-tmp
9
10
                mv /etc/ld.so.conf-atlas-tmp /etc/ld.so.conf
10
11
        fi
11
12
        if grep -q '^/usr/lib/sse2$' /etc/ld.so.conf ; then
12
 
                grep -v '^/usr/lib/sse2$' /etc/ld.so.conf > /etc/ld.so.conf-atlas-tmp
 
13
                grep -v '^/usr/lib/sse2$' /etc/ld.so.conf > /etc/ld.so.conf-atlas-tmp || true
 
14
                touch /etc/ld.so.conf-atlas-tmp
13
15
                chmod 0644 /etc/ld.so.conf-atlas-tmp
14
16
                mv /etc/ld.so.conf-atlas-tmp /etc/ld.so.conf
15
17
        fi
16
 
        ldconfig
17
18
fi
18
19
 
19
20
#DEBHELPER#