aboutsummaryrefslogtreecommitdiff
path: root/core/cpt/post-install
diff options
context:
space:
mode:
Diffstat (limited to 'core/cpt/post-install')
-rwxr-xr-xcore/cpt/post-install11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/cpt/post-install b/core/cpt/post-install
new file mode 100755
index 00000000..5fbbc8e7
--- /dev/null
+++ b/core/cpt/post-install
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+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' {} +