Files
rocm-systems/projects/rdc/src/RPM_preun.in
T
systems-assistant[bot] c2312be1a2 Add 'projects/rdc/' from commit '5ae7eeb3550d4cb14cbc31d3022e545b054f1ad1'
git-subtree-dir: projects/rdc
git-subtree-mainline: a68afa42a1
git-subtree-split: 5ae7eeb355
2025-07-22 22:52:37 +00:00

8 regels
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