1.1 --- a/debian/rules Mon Jan 11 01:48:42 2010 +0100
1.2 +++ b/debian/rules Mon Jan 11 01:58:41 2010 +0100
1.3 @@ -48,9 +48,7 @@
1.4 binary-indep: install
1.5 dh_testdir -i
1.6 dh_testroot -i
1.7 - # Install before dh_pycentral so that it can work out that there's Python involved
1.8 - dh_install -i -n
1.9 - dh_pycentral -i usr/lib/shedskin/bin
1.10 + dh_pycentral -i
1.11 dh_installdocs -i
1.12 dh_installchangelogs -i
1.13 gzip --best debian/shedskin.1
2.1 --- a/debian/shedskin.install Mon Jan 11 01:48:42 2010 +0100
2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2.3 @@ -1,7 +0,0 @@
2.4 -ss.py usr/lib/shedskin/bin/
2.5 -shared.py usr/lib/shedskin/bin/
2.6 -extmod.py usr/lib/shedskin/bin/
2.7 -graph.py usr/lib/shedskin/bin/
2.8 -infer.py usr/lib/shedskin/bin/
2.9 -cpp.py usr/lib/shedskin/bin/
2.10 -backward.py usr/lib/shedskin/bin/
3.1 --- a/debian/shedskin.postinst Mon Jan 11 01:48:42 2010 +0100
3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
3.3 @@ -1,44 +0,0 @@
3.4 -#! /bin/sh
3.5 -# postinst script for ShedSkin
3.6 -#
3.7 -# see: dh_installdeb(1)
3.8 -
3.9 -set -e
3.10 -
3.11 -# summary of how this script can be called:
3.12 -# * <postinst> `configure' <most-recently-configured-version>
3.13 -# * <old-postinst> `abort-upgrade' <new version>
3.14 -# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
3.15 -# <new-version>
3.16 -# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
3.17 -# <failed-install-package> <version> `removing'
3.18 -# <conflicting-package> <version>
3.19 -# for details, see http://www.debian.org/doc/debian-policy/ or
3.20 -# the debian-policy package
3.21 -#
3.22 -# quoting from the policy:
3.23 -# Any necessary prompting should almost always be confined to the
3.24 -# post-installation script, and should be protected with a conditional
3.25 -# so that unnecessary prompting doesn't happen if a package's
3.26 -# installation fails and the `postinst' is called with `abort-upgrade',
3.27 -# `abort-remove' or `abort-deconfigure'.
3.28 -
3.29 -PACKAGE=shedskin
3.30 -
3.31 -case "$1" in
3.32 - configure|abort-upgrade|abort-remove|abort-deconfigure)
3.33 - # ss is already a program
3.34 - chmod ugo+rx /usr/lib/shedskin/bin/ss.py /usr/bin/shedskin
3.35 - ;;
3.36 -
3.37 - *)
3.38 - echo "postinst called with unknown argument \`$1'" >&2
3.39 - exit 1
3.40 - ;;
3.41 -esac
3.42 -
3.43 -
3.44 -
3.45 -exit 0
3.46 -
3.47 -
4.1 --- a/debian/shedskin.postinst.debhelper Mon Jan 11 01:48:42 2010 +0100
4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
4.3 @@ -1,8 +0,0 @@
4.4 -# Automatically added by dh_pycentral
4.5 -if which pycentral >/dev/null 2>&1; then
4.6 - pycentral pkginstall shedskin
4.7 - if grep -qs '^shedskin$' /var/lib/pycentral/delayed-pkgs; then
4.8 - sed -i '/^shedskin$/d' /var/lib/pycentral/delayed-pkgs
4.9 - fi
4.10 -fi
4.11 -# End automatically added section
5.1 --- a/debian/shedskin.prerm Mon Jan 11 01:48:42 2010 +0100
5.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
5.3 @@ -1,20 +0,0 @@
5.4 -#! /bin/sh
5.5 -# prerm script for ShedSkin
5.6 -
5.7 -set -e
5.8 -
5.9 -PACKAGE=shedskin
5.10 -
5.11 -case "$1" in
5.12 - remove|upgrade|failed-upgrade)
5.13 - ;;
5.14 -
5.15 - *)
5.16 - echo "prerm called with unknown argument \`$1'" >&2
5.17 - exit 1
5.18 - ;;
5.19 -esac
5.20 -
5.21 -
5.22 -
5.23 -exit 0
6.1 --- a/debian/shedskin.prerm.debhelper Mon Jan 11 01:48:42 2010 +0100
6.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
6.3 @@ -1,45 +0,0 @@
6.4 -# Automatically added by dh_pycentral
6.5 -case "$1" in remove|upgrade)
6.6 - pkgremove=y
6.7 -esac
6.8 -if [ -f /var/lib/pycentral/shedskin.pkgremove ] || [ -f /var/lib/pycentral/pkgremove ]; then
6.9 - pkgremove=y
6.10 -fi
6.11 -if [ "$pkgremove" = y ]; then
6.12 -if which python >/dev/null 2>&1 && which pycentral >/dev/null 2>&1; then
6.13 - pycentral pkgremove shedskin
6.14 -else
6.15 - flist=$(tempfile)
6.16 - slist=$(tempfile)
6.17 - dpkg -L shedskin | tee $flist | \
6.18 - while read n; do
6.19 - case "$n" in
6.20 - /usr/share/pyshared/*)
6.21 - n2=${n#/usr/share/pyshared/*}
6.22 - case "$n" in
6.23 - *.py) echo "p $n";;
6.24 - *) [ -d "$n" ] && echo "d $n2" || echo "f $n2"
6.25 - esac
6.26 - ;;
6.27 - *) continue
6.28 - esac
6.29 - done > $slist
6.30 - if [ -s $slist ]; then
6.31 - for d in /usr/lib/python[0-9].[0-9]/????-packages; do
6.32 - case "$d" in */python2.1/*|*/python2.2/*) continue; esac
6.33 - while read t n; do
6.34 - case "$t" in
6.35 - p) rm -f $d/$n $d/${n}[co];;
6.36 - d) rmdir $d/$n 2>/dev/null || true;;
6.37 - *) rm -f $d/$n
6.38 - esac
6.39 - done < $slist
6.40 - done
6.41 - fi
6.42 - awk '/\/usr\/share\/pyshared/ {next} /\.py$/ {print $0"c\n" $0"o"}' $flist \
6.43 - | xargs -r rm -f >&2
6.44 - rm -f $flist $slist
6.45 -fi
6.46 -rm -f /var/lib/pycentral/shedskin.pkgremove
6.47 -fi
6.48 -# End automatically added section
7.1 --- a/debian/shedskin.substvars Mon Jan 11 01:48:42 2010 +0100
7.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
7.3 @@ -1,2 +0,0 @@
7.4 -python:Versions=all
7.5 -python:Depends=python, python-central (>= 0.6.7)