aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-16 06:45:24 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-16 06:45:24 +0000
commit72736c0dae775f20ff4ac2135d5e9616fc3a5456 (patch)
treef14aead87ae7f20ff11edef379c7ca68d78b4380 /kiss
parent913fe6c93d4c6f3057114d4e9f1d680c8c4dcfed (diff)
downloadcpt-72736c0dae775f20ff4ac2135d5e9616fc3a5456.tar.gz
kiss: clean up
FossilOrigin-Name: 32184af28adbb4d73afd8c1eb46291bcd4083e02c397fed122ae26e54069b60e
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss17
1 files changed, 4 insertions, 13 deletions
diff --git a/kiss b/kiss
index 764e202..3df41f7 100755
--- a/kiss
+++ b/kiss
@@ -207,19 +207,10 @@ pkg_strip() {
# Strip only files matching the below ELF types.
find "$pkg_dir/$1" -type f | while read -r file; do
case $(readelf -h "$file" 2>/dev/null) in
- *" DYN "*)
- strip_opt=--strip-unneeded
- ;;
-
- *" REL "*)
- strip_opt=--strip-debug
- ;;
-
- *" EXEC "*)
- strip_opt=--strip-all
- ;;
-
- *) continue ;;
+ *" DYN "*) strip_opt=--strip-unneeded ;;
+ *" EXEC "*) strip_opt=--strip-all ;;
+ *" REL "*) strip_opt=--strip-debug ;;
+ *) continue
esac
# Suppress errors here as some binaries and libraries may