File: bitpim.postinst

package info (click to toggle)
bitpim 1.0.7%2Bdfsg1-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 31,384 kB
  • ctags: 64,877
  • sloc: python: 267,746; cpp: 2,076; perl: 600; ansic: 409; sh: 231; makefile: 142; sed: 1
file content (21 lines) | stat: -rw-r--r-- 588 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -e

#DEBHELPER#

# Standard tools just arrange to produce unoptimized .pyc files; ensure
# that we also have optimized .pyo files for better performance.
# Also, supply -Wignore to suppress spurious FutureWarnings.  (See #358023.)

if test -x /usr/bin/pyversions; then
    PYTHON=`pyversions -d`
else
    PYTHON=python2.3
fi

if which $PYTHON >/dev/null 2>&1 && [ -e /usr/lib/$PYTHON/compileall.py ]; then
    # $PYTHON -Wignore /usr/lib/$PYTHON/compileall.py -q /usr/share/bitpim
    $PYTHON -OO -Wignore /usr/lib/$PYTHON/compileall.py -q /usr/share/bitpim/code
fi

exit 0