comparison deploy/linux/fix-lintian-bits.sh @ 693:c764dd0df6ec

Add script to fix a few things in dpkg pkg that lintian complains about
author Chris Cannam
date Fri, 13 Dec 2013 09:39:04 +0000
parents
children 129b679734d0
comparison
equal deleted inserted replaced
692:0f59b9cabf5d 693:c764dd0df6ec
1 #!/bin/bash
2
3 dir=$1
4
5 [ -d "$dir" ] || exit 1
6
7 strip "$dir"/usr/bin/*
8
9 sz=`du -sx --exclude DEBIAN "$dir" | awk '{ print $1; }'`
10 perl -i -p -e "s/Installed-Size: .*/Installed-Size: $sz/" "$dir"/DEBIAN/control
11
12 find "$dir" -name \*~ -exec rm \{\} \;
13
14 sudo chown -R root.root "$dir"/*
15