diff options
Diffstat (limited to 'debian/runtime.d/public_modules.rtupdate')
-rwxr-xr-x | debian/runtime.d/public_modules.rtupdate | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/runtime.d/public_modules.rtupdate b/debian/runtime.d/public_modules.rtupdate new file mode 100755 index 0000000..b96e06d --- /dev/null +++ b/debian/runtime.d/public_modules.rtupdate @@ -0,0 +1,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 |