annotate deploy/linux/fix-lintian-bits.sh @ 733:7942b7633505

Further to adding Plink component
author Chris Cannam
date Mon, 17 Dec 2018 18:48:31 +0000
parents cd4617b18960
children
rev   line source
Chris@700 1 #!/bin/bash
Chris@700 2
Chris@700 3 dir=$1
Chris@700 4
Chris@700 5 [ -d "$dir" ] || exit 1
Chris@700 6
Chris@700 7 set -eu
Chris@700 8
Chris@729 9 for x in "$dir"/usr/bin/* ; do
Chris@729 10 case "$x" in
Chris@729 11 *.sh) ;;
Chris@729 12 *) strip "$x" ;;
Chris@729 13 esac
Chris@729 14 done
Chris@700 15
Chris@700 16 sz=`du -sx --exclude DEBIAN "$dir" | awk '{ print $1; }'`
Chris@700 17 perl -i -p -e "s/Installed-Size: .*/Installed-Size: $sz/" "$dir"/DEBIAN/control
Chris@700 18
Chris@700 19 find "$dir" -name \*~ -exec rm \{\} \;
Chris@700 20
Chris@700 21 chown -R root.root "$dir"/*
Chris@700 22
Chris@700 23 chmod -R g-w "$dir"/*