coverage.sh: only consider non-POD parts for maximum line length check

pull/1/head
parent 534798dbd2
commit 0c990abc48
Signed by: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -13,7 +13,7 @@ if [ "$ret" -ne 0 ]; then
fi fi
rm "$TMPFILE" rm "$TMPFILE"
if [ $(wc -L < mmdebstrap) -gt 79 ]; then if [ $(sed -e '/^__END__$/,$d' mmdebstrap | wc --max-line-length) -gt 79 ]; then
echo "exceeded maximum line length of 79 characters" >&2 echo "exceeded maximum line length of 79 characters" >&2
exit 1 exit 1
fi fi

@ -6346,8 +6346,7 @@ If you don't want this behaviour, you can override it by manually specifying a
mirror in various different ways: mirror in various different ways:
$ mmdebstrap stable stable-chroot.tar http://deb.debian.org/debian $ mmdebstrap stable stable-chroot.tar http://deb.debian.org/debian
$ mmdebstrap stable stable-chroot.tar \ $ mmdebstrap stable stable-chroot.tar "deb http://deb.debian.org/debian stable main"
"deb http://deb.debian.org/debian stable main"
$ mmdebstrap stable stable-chroot.tar /path/to/sources.list $ mmdebstrap stable stable-chroot.tar /path/to/sources.list
$ mmdebstrap stable stable-chroot.tar - < /path/to/sources.list $ mmdebstrap stable stable-chroot.tar - < /path/to/sources.list
@ -6412,8 +6411,7 @@ Use as replacement for autopkgtest-build-qemu and vmdb2:
$ mmdebstrap --variant=important --include=linux-image-amd64 \ $ mmdebstrap --variant=important --include=linux-image-amd64 \
--customize-hook='chroot "$1" passwd --delete root' \ --customize-hook='chroot "$1" passwd --delete root' \
--customize-hook='chroot "$1" useradd --home-dir /home/user --customize-hook='chroot "$1" useradd --home-dir /home/user --create-home user' \
--create-home user' \
--customize-hook='chroot "$1" passwd --delete user' \ --customize-hook='chroot "$1" passwd --delete user' \
--customize-hook='echo host > "$1/etc/hostname"' \ --customize-hook='echo host > "$1/etc/hostname"' \
--customize-hook='echo "127.0.0.1 localhost host" > "$1/etc/hosts"' \ --customize-hook='echo "127.0.0.1 localhost host" > "$1/etc/hosts"' \

Loading…
Cancel
Save