Mercurial > hg > easyhg
annotate deploy/linux/fix-lintian-bits.sh @ 716:6fb20633da00
Defeat cacheing; switch to 16.04 for deb build (no point in trying to support 14.04 as it doesn't have the python-pyqt5 package that is one of our dependencies)
author | Chris Cannam |
---|---|
date | Wed, 12 Dec 2018 14:10:55 +0000 |
parents | 21e4df9865af |
children | cd4617b18960 |
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@700 | 9 strip "$dir"/usr/bin/* |
Chris@700 | 10 |
Chris@700 | 11 sz=`du -sx --exclude DEBIAN "$dir" | awk '{ print $1; }'` |
Chris@700 | 12 perl -i -p -e "s/Installed-Size: .*/Installed-Size: $sz/" "$dir"/DEBIAN/control |
Chris@700 | 13 |
Chris@700 | 14 find "$dir" -name \*~ -exec rm \{\} \; |
Chris@700 | 15 |
Chris@700 | 16 chown -R root.root "$dir"/* |
Chris@700 | 17 |
Chris@700 | 18 chmod -R g-w "$dir"/* |