Mercurial > hg > easyhg
view deploy/linux/fix-lintian-bits.sh @ 734:07c610b06e58 easyhg_v1.4
Cut a bit of debug output
author | Chris Cannam |
---|---|
date | Tue, 18 Dec 2018 10:20:13 +0000 |
parents | cd4617b18960 |
children |
line wrap: on
line source
#!/bin/bash dir=$1 [ -d "$dir" ] || exit 1 set -eu for x in "$dir"/usr/bin/* ; do case "$x" in *.sh) ;; *) strip "$x" ;; esac done sz=`du -sx --exclude DEBIAN "$dir" | awk '{ print $1; }'` perl -i -p -e "s/Installed-Size: .*/Installed-Size: $sz/" "$dir"/DEBIAN/control find "$dir" -name \*~ -exec rm \{\} \; chown -R root.root "$dir"/* chmod -R g-w "$dir"/*