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

grep -q '\.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' {} +