summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-core/safec/safec_%.bbappend
blob: b8256e2b1ad4700e4e84099f94a521d6a6e6a0fc (plain)
1
2
3
4
5
6
7
8
9
10
11
RDEPENDS:${PN} = ""
do_install:append() {
    F=$(find ${D} -name check_for_unsafe_apis)
    if [ -n "${F}" ]; then
        # remove the unused perl script
        rm -f "${F}"
        # remove the script's destination directory, only if it is empty
        rmdir "$(dirname ${F})" 2>/dev/null || :
    fi
}