Files
rocm-systems/projects/rdc/src/RPM_preun.in
T
Ranjith Ramakrishnan 2b935ed27e SWDEV-502603 - Use RPM_INSTALL_PREFIX variable rather than hard coded install prefix paths in RPM post/prerm scripts
Change-Id: I2699459e1e3730cf045f24f0c90e09f900701a6f


[ROCm/rdc commit: b778a879cb]
2024-12-10 21:44:09 -06:00

8 lines
254 B
Bash

#!/bin/bash
if [ $1 -le 1 ]; then
# perform the below actions for rpm remove($1=0) or upgrade($1=1) operations
# remove pyc file generated by python
rm -rf /$RPM_INSTALL_PREFIX0/@CMAKE_INSTALL_LIBEXECDIR@/@RDC@/python_binding/__pycache__
fi