Mercurial > hg > sonic-visualiser
comparison deploy/linux/fix-lintian-bits.sh @ 2008:55d9bbf1fe45 zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 14:05:41 +0100 |
parents | 9b59deb4a854 |
children |
comparison
equal
deleted
inserted
replaced
2007:246bdf94ef7b | 2008:55d9bbf1fe45 |
---|---|
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"/* |