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