Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=e93abbfaed853ef6a980b030fb74b61ab8376292

commit e93abbfaed853ef6a980b030fb74b61ab8376292
Author: James Buren <r...@frugalware.org>
Date:   Tue May 4 17:02:44 2010 -0500

add check for trailing newline in fblint

diff --git a/fblint b/fblint
index 03d259a..510d717 100755
--- a/fblint
+++ b/fblint
@@ -190,7 +190,7 @@ if [ "`get_root`" = "stable" -o "`get_root`" = "$codename" 
]; then
check "unchanged pkgrel" "echo $pkgrel | grep -q '$codename'"
fi
check "trailing whitespace" "! grep -q ' $' $_fblint_fb"
-
+check "existence of trailing newline" "[ '`echo 'q' | ed -s $_fblint_fb 2>&1`' 
!= 'Newline appended' ]"
[ "$_fblint_verbose" ] && echo "done: $_fblint_done, failed $_fblint_failed"

if [ $_fblint_failed -gt 0 ]; then
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to