aboutsummaryrefslogtreecommitdiff
path: root/sbolint
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-07-12 01:52:58 -0400
committerB. Watson <urchlay@slackware.uk>2026-07-12 01:52:58 -0400
commitdf8740ed54f45f90a6ace003f3260c0d3a1d43da (patch)
tree07d885dd4d6e8392827cc6706f5fecc97be030c6 /sbolint
parent93c54b93b471b51b967ec420848fc61d186e7a03 (diff)
downloadsbo-maintainer-tools-df8740ed54f45f90a6ace003f3260c0d3a1d43da.tar.gz
sbolint: Only allow one .info file in the SlackBuild dir.
Diffstat (limited to 'sbolint')
-rwxr-xr-xsbolint17
1 files changed, 17 insertions, 0 deletions
diff --git a/sbolint b/sbolint
index 7e31b24..cdf62da 100755
--- a/sbolint
+++ b/sbolint
@@ -188,6 +188,10 @@ and be a I<#!/bin/bash> script.
=item -
+Only one file ending in .info may exist.
+
+=item -
+
The script must contain the standard variable assignments for PRGNAM,
VERSION, BUILD, and TAG. BUILD must be numeric.
@@ -1049,8 +1053,21 @@ sub check_slackdesc {
}
}
+sub check_extra_info {
+ my @i;
+ push @i, <*.info>;
+ push @i, <*/*.info>;
+ push @i, <*/*/*.info>;
+ my $count = scalar @i;
+
+ if($count > 1) {
+ log_error("multiple .info file(s) found: " . join(" ", @i));
+ }
+}
+
# This is a damn mess. Needs refactoring badly.
sub check_info {
+ check_extra_info();
my $file = $buildname . ".info";
my @lines = check_and_read($file, 0644);
return unless scalar @lines;