~ubuntu-branches/ubuntu/gutsy/ecasound2.2/gutsy

« back to all changes in this revision

Viewing changes to debian/python-ecasound2.2.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Junichi Uekawa
  • Date: 2005-04-14 09:15:48 UTC
  • Revision ID: james.westby@ubuntu.com-20050414091548-vwu2de2157xq1hcm
Tags: 2.4.1-1
* New upstream version
- 01_ecasoundrc-location-fix: included in upstream
- 07_configure_in_maintainer_mode: updated
* removed refererence to artsc-dev
* [debian/control, debian/rules] Use automake1.9
* documentation is now in rst
- add Build-Depends: python-docutils
* debian/menu: quote
* debian/watch: add

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/bash -e
 
2
#
 
3
# Debian prerm script for Python x.y hierarchical modules
 
4
# Written by Gregor Hoffleit <flight@debian.org>
 
5
# Extended by Matthias Klose <doko@debian.org>
 
6
# and I believe I might have done some touching <dancer@debian.org>
 
7
#
 
8
 
 
9
PACKAGE=`basename $0 .postinst`
 
10
PV=`dpkg --listfiles $PACKAGE | sed -n -e '/^\/usr\/lib\/python.*\//{
 
11
  s,/usr/lib/python\([0-9][0-9.]*\)/.*,\1,p
 
12
  q
 
13
}'`
 
14
DIRLIST="/usr/lib/python$PV"
 
15
 
 
16
case "$1" in
 
17
    configure|abort-upgrade|abort-remove|abort-deconfigure)
 
18
        for i in $DIRLIST ; do
 
19
            python -O /usr/lib/python$PV/compileall.py -q $i
 
20
            python /usr/lib/python$PV/compileall.py -q $i
 
21
        done
 
22
    ;;
 
23
 
 
24
    *)
 
25
        echo "postinst called with unknown argument \`$1'" >&2
 
26
        exit 1
 
27
    ;;
 
28
esac
 
29
 
 
30
#DEBHELPER#
 
31