4884de63fd
Remove the __pycache__ in the folder libexec/rocm_smi
Change-Id: I0ad505ff7e7368d5fe86e1eee12080039edc7111
[ROCm/amdsmi commit: 9f814e150e]
29 lines
470 B
Bash
Executable File
29 lines
470 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
rm_ldconfig() {
|
|
# left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build
|
|
if [ "@ENABLE_LDCONFIG@" == "ON" ]; then
|
|
rm -f /etc/ld.so.conf.d/x86_64-librocm_smi_lib.conf
|
|
ldconfig
|
|
fi
|
|
}
|
|
|
|
rm_pyc() {
|
|
# remove pyc file generated by python
|
|
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/libexec/rocm_smi/__pycache__
|
|
}
|
|
|
|
case "$1" in
|
|
( remove | upgrade)
|
|
rm_ldconfig
|
|
rm_pyc
|
|
;;
|
|
( purge )
|
|
;;
|
|
( * )
|
|
exit 0
|
|
;;
|
|
esac
|