Mercurial > hg > easyhg
comparison deploy/linux/fix-lintian-bits.sh @ 700:21e4df9865af
Some work on Linux packaging
author | Chris Cannam |
---|---|
date | Wed, 12 Dec 2018 10:16:11 +0000 |
parents | |
children | cd4617b18960 |
comparison
equal
deleted
inserted
replaced
699:646e48a0d3a5 | 700:21e4df9865af |
---|---|
1 #!/bin/bash | |
2 | |
3 dir=$1 | |
4 | |
5 [ -d "$dir" ] || exit 1 | |
6 | |
7 set -eu | |
8 | |
9 strip "$dir"/usr/bin/* | |
10 | |
11 sz=`du -sx --exclude DEBIAN "$dir" | awk '{ print $1; }'` | |
12 perl -i -p -e "s/Installed-Size: .*/Installed-Size: $sz/" "$dir"/DEBIAN/control | |
13 | |
14 find "$dir" -name \*~ -exec rm \{\} \; | |
15 | |
16 chown -R root.root "$dir"/* | |
17 | |
18 chmod -R g-w "$dir"/* |