mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 15:47:15 +08:00
24 lines
287 B
Plaintext
24 lines
287 B
Plaintext
_destdir=opt/apps/larch/modules
|
|
|
|
post_install() {
|
|
post_upgrade
|
|
}
|
|
|
|
post_upgrade() {
|
|
echo "byte-compile python modules ..."
|
|
python -m compileall $_destdir
|
|
}
|
|
|
|
pre_remove() {
|
|
pre_upgrade
|
|
}
|
|
|
|
pre_upgrade() {
|
|
echo "Remove .pyc files ..."
|
|
rm -f $_destdir/*.pyc
|
|
}
|
|
|
|
op=$1
|
|
shift
|
|
$op $*
|