aboutsummaryrefslogtreecommitdiff
path: root/testing/cpt/post-install
diff options
context:
space:
mode:
Diffstat (limited to 'testing/cpt/post-install')
-rwxr-xr-xtesting/cpt/post-install13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/cpt/post-install b/testing/cpt/post-install
new file mode 100755
index 00000000..7f98b4d9
--- /dev/null
+++ b/testing/cpt/post-install
@@ -0,0 +1,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' {} +