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

commit 409ac53055a94e90bce3aba804edce0020d6283f
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Thu Jun 12 20:38:08 2008 +0200

fblint: check if parent dir == the first group

diff --git a/fblint b/fblint
index f4a7454..9605481 100755
--- a/fblint
+++ b/fblint
@@ -111,7 +111,8 @@ check "maintainer" "grep -q '^# Maintainer: ' $_fblint_fb"
check "syntax errors" "source $_fblint_fb"
check "pkgname" "[ ! -z \"$pkgname\" ]"
# fst is a special exception for chroot builds
-check "dirname is the same as pkgname" "[ $pkgname == `pwd|sed 's|.*/||'` -o 
fst == `pwd|sed 's|.*/||'` ]"
+check "parent dir is the same as the first group" "[ $pkgname == `pwd|sed 
's|.*/||'` -o fst == `pwd|sed 's|.*/||'` ]"
+check "dirname is the same as pkgname" "[ $groups == `pwd|sed 
's|.*/\(.*\)/.*|\1|'` -o tmp == `pwd|sed 's|.*/\(.*\)/.*|\1|'` ]"
check "uppercase letters in pkgname" "! echo $pkgname | grep -q '[A-Z]'"
check "pkgver" "[ ! -z \"$pkgver\" ]"
check "hyphen-less pkgver" "[ ! `echo $pkgver | grep '-'` ]"
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to