aboutsummaryrefslogtreecommitdiff
path: root/core/cpt/post-install
blob: ce9e089087b536d8a42d91fd5906cc764647d911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

grep '\.la$' "$CPT_ROOT/var/db/cpt/installed/"*/manifest || exit 0

find "$CPT_ROOT/usr/lib" \
    ! -type d \
    -name '*.la' \
    -exec rm -f -- {} +

find "$CPT_ROOT/var/db/cpt/installed" \
    ! -type d \
    -name manifest \
    -exec sed -i '/.*\.la$/d' {} +