OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-tools Date: 22-Oct-2006 10:13:14
Branch: HEAD Handle: 2006102209131400
Modified files:
openpkg-tools/cmd lint-spec.pl
Log:
remove obsolete comment; add a (still out-commented) check for
unversioned files; check Summary header's 'all-caps' style more
restrictively
Summary:
Revision Changes Path
1.11 +5 -12 openpkg-tools/cmd/lint-spec.pl
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-tools/cmd/lint-spec.pl
============================================================================
$ cvs diff -u -r1.10 -r1.11 lint-spec.pl
--- openpkg-tools/cmd/lint-spec.pl 13 Oct 2006 17:16:30 -0000 1.10
+++ openpkg-tools/cmd/lint-spec.pl 22 Oct 2006 08:13:14 -0000 1.11
@@ -35,7 +35,7 @@
# program information
my $progname = "speclint";
-my $progvers = "0.0.1";
+my $progvers = "1.0.0";
# parameters (defaults)
my $version = 0;
@@ -348,7 +348,7 @@
my @headers = (qw(
m:Name:^[a-z][a-z0-9-]*$
- m:Summary:^[A-Z].+
+ m:Summary:^[A-Z]\S*(\s+([A-Z]\S*|of|for|from|in|at|on|\(\S+\)))*
m:URL:^((https?|ftp)://.+|-)$
m:Vendor:.+
m:Packager:^OpenPKG\sFoundation\se\.V\.$
@@ -872,16 +872,6 @@
}
}
-# TODO (ms): Convert following bourne shell script to Perl
-# # check for special FSL keywords according to minimum FSL version
requirements
-# grep 'jitter' $fslfile >/dev/null 2>&1
-# jfound=$?
-# grep 'monitor' $fslfile >/dev/null 2>&1
-# mfound=$?
-# [ $jfound -eq 0 ] || [ $mfound -eq 0 ] && grep 'PreReq: *fsl >= 1.3.0'
`echo $fslfile | sed -e 's;\/fsl\.;\/;' -`.spec >/dev/null 2>&1
-# broken=$?
-# [ $broken -eq 1 ] && [ $jfound -eq 0 -o $mfound -eq 0 ] && echo
"$fslfile Failed"
-
# check for sub-shell parenthesis style
# (this is such complicated because the Bourne Shell has a
# construct "case <value> in <pattern> ) <script> ;; ... esac"
@@ -1276,6 +1266,9 @@
elsif ($s->{-url} ne '' and -f $cvsdir."/".$s->{-file} and not -f
$dstdir."/".$s->{-file}) {
&lint_error($file, undef, undef, "source \"$s->{-file}\" not
found in DST, but in CVS (expected it in DST or want URL)");
}
+ #if ($s->{-url} ne '' and $s->{-file} !~ m/\d/) {
+ # &lint_warning($file, undef, undef, "vendor source
\"$s->{-file}\" not versioned");
+ #}
}
# check for patch file naming
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]