Mercurial > hg > sonic-annotator
comparison deploy/linux/fix-lintian-bits.sh @ 300:7dd6795af5e6
Start updating build stuff for 1.5
author | Chris Cannam |
---|---|
date | Thu, 25 May 2017 14:17:53 +0100 |
parents | 120723f7698b |
children |
comparison
equal
deleted
inserted
replaced
299:c9be1a6f7d74 | 300:7dd6795af5e6 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 dir=$1 | 3 dir=$1 |
4 | 4 |
5 [ -d "$dir" ] || exit 1 | 5 [ -d "$dir" ] || exit 1 |
6 | |
7 set -eu | |
6 | 8 |
7 strip "$dir"/usr/bin/* | 9 strip "$dir"/usr/bin/* |
8 | 10 |
9 sz=`du -sx --exclude DEBIAN "$dir" | awk '{ print $1; }'` | 11 sz=`du -sx --exclude DEBIAN "$dir" | awk '{ print $1; }'` |
10 perl -i -p -e "s/Installed-Size: .*/Installed-Size: $sz/" "$dir"/DEBIAN/control | 12 perl -i -p -e "s/Installed-Size: .*/Installed-Size: $sz/" "$dir"/DEBIAN/control |
11 | 13 |
12 find "$dir" -name \*~ -exec rm \{\} \; | 14 find "$dir" -name \*~ -exec rm \{\} \; |
13 | 15 |
14 sudo chown -R root.root "$dir"/* | 16 chown -R root.root "$dir"/* |
15 | 17 |
16 sudo chmod -R g-w "$dir"/* | 18 chmod -R g-w "$dir"/* |