diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-12-02 13:09:17 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-12-02 13:09:17 +0300 |
commit | 38fde63f74091af1f6a0d485474769bb6b4f17ce (patch) | |
tree | 1317a1fa2ef61c710ff5c653f43c0af8bb164ca6 /debian/runtime.d/public_modules.rtupdate | |
download | pypy-debian.tar.gz |
Import pypy (7.2.0+dfsg-1)debian/7.2.0+dfsg-1debian
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 |