diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-07-12 01:52:58 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-07-12 01:52:58 -0400 |
| commit | df8740ed54f45f90a6ace003f3260c0d3a1d43da (patch) | |
| tree | 07d885dd4d6e8392827cc6706f5fecc97be030c6 /sbolint | |
| parent | 93c54b93b471b51b967ec420848fc61d186e7a03 (diff) | |
| download | sbo-maintainer-tools-df8740ed54f45f90a6ace003f3260c0d3a1d43da.tar.gz | |
sbolint: Only allow one .info file in the SlackBuild dir.
Diffstat (limited to 'sbolint')
| -rwxr-xr-x | sbolint | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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; |
