changeset 729:cd4617b18960

Don't attempt to strip shell-scripts
author Chris Cannam
date Mon, 17 Dec 2018 09:50:16 +0000
parents 1d0a0fce4021
children f1dc72b940d5
files deploy/linux/fix-lintian-bits.sh
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/deploy/linux/fix-lintian-bits.sh	Mon Dec 17 09:45:34 2018 +0000
+++ b/deploy/linux/fix-lintian-bits.sh	Mon Dec 17 09:50:16 2018 +0000
@@ -6,7 +6,12 @@
 
 set -eu
 
-strip "$dir"/usr/bin/*
+for x in "$dir"/usr/bin/* ; do
+    case "$x" in
+        *.sh) ;;
+        *) strip "$x" ;;
+    esac
+done
 
 sz=`du -sx --exclude DEBIAN "$dir" | awk '{ print $1; }'`
 perl -i -p -e "s/Installed-Size: .*/Installed-Size: $sz/" "$dir"/DEBIAN/control