summaryrefslogtreecommitdiff
path: root/debian/runtime.d/public_modules.rtupdate
blob: b96e06de9e1d8b950abf6fb389ed5e8e9023c8a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh
set -e

if [ "$1" = rtupdate ]; then
	if which pypyclean >/dev/null 2>&1; then
		pypyclean /usr/lib/pypy/dist-packages
	fi
	if which pypycompile >/dev/null 2>&1; then
		pypycompile /usr/lib/pypy/dist-packages
	else
		echo >&2 "pypycompile not found in $(basename $0) hook."
		exit 1
	fi
fi