Commit 06a9d5c4 authored by Jelmer Vernooij's avatar Jelmer Vernooij

file-contains-trailing-whitespace: Also trim empty lines from the

ends of files.
parent 3b755aa2
......@@ -4,6 +4,8 @@ lintian-brush (0.5) UNRELEASED; urgency=medium
* Hide tracebacks by default, but report list of failed fixers.
* Use secure copyright file specification URI.
* Bump to standards version 4.2.1
* file-contains-trailing-whitespace: Also trim empty lines from the
ends of files.
-- Jelmer Vernooij <jelmer@debian.org> Sat, 03 Nov 2018 16:50:03 +0000
......
#!/bin/sh
sed -i -e 's@[[:space:]]*$@@g' debian/control* debian/changelog
sed -i -e 's@[ ]*$@@g' debian/rules
sed -i -e :a -e '/^\n*$/{$d;N;};/\n$/ba' debian/rules debian/changelog debian/control
echo "Trim trailing whitespace."
echo "Fixed-Lintian-Tags: file-contains-trailing-whitespace"
lintian-brush (0.1-1) UNRELEASED; urgency=medium
* Initial release. (Closes: #XXXXXX)
-- Jelmer Vernooij <jelmer@debian.org> Sun, 28 Oct 2018 00:09:52 +0000
Source: lintian-brush
Package: lintian-brush
Description: Testing
Test test
Trim trailing whitespace.
Fixed-Lintian-Tags: file-contains-trailing-whitespace
lintian-brush (0.1-1) UNRELEASED; urgency=medium
* Initial release. (Closes: #XXXXXX)
-- Jelmer Vernooij <jelmer@debian.org> Sun, 28 Oct 2018 00:09:52 +0000
Source: lintian-brush
Package: lintian-brush
Description: Testing
Test test
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment