~ubuntu-branches/ubuntu/saucy/python2.7/saucy-updates

« back to all changes in this revision

Viewing changes to debian/PVER-dbg.postinst.in

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-04-06 17:45:49 UTC
  • mfrom: (1.1.14) (27.2.19 experimental)
  • Revision ID: package-import@ubuntu.com-20130406174549-jvhwjh629y7w40u0
Tags: 2.7.4-1ubuntu1
* Merge with Debian; remaining changes:
  - Build-depend on python:any instead of python.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
if [ "$1" = configure ]; then
 
6
    files=$(dpkg -L lib@PVER@-dbg | sed -n '/^\/usr\/lib\/@PVER@\/.*\.py$/p')
 
7
    if [ -n "$files" ]; then
 
8
        @PVER@ -E -S /usr/lib/@PVER@/py_compile.py $files
 
9
        if grep -sq '^byte-compile[^#]*optimize' /etc/python/debian_config; then
 
10
            @PVER@ -E -S -O /usr/lib/@PVER@/py_compile.py $files
 
11
        fi
 
12
    else
 
13
        echo >&2 "@PVER@-dbg: can't get files for byte-compilation"
 
14
    fi
 
15
fi
 
16
 
 
17
#DEBHELPER#
 
18
 
 
19
exit 0