diff options
author | B. Watson <urchlay@slackware.uk> | 2023-06-21 04:58:05 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2023-06-21 04:58:05 -0400 |
commit | 1d07a7b3e9e2183b2b5daf175403a3c0b30457c4 (patch) | |
tree | e0b0f613cfc3bc55b24024be946ee9814fa0515c | |
parent | ecdd88685078da6de7f65c684bc5d3f59d09a9f9 (diff) | |
download | sbo-maintainer-tools-1d07a7b3e9e2183b2b5daf175403a3c0b30457c4.tar.gz |
sbolint: re-add and document - for stdin.
-rwxr-xr-x | sbolint | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -21,7 +21,8 @@ intended for SlackBuild authors and maintainers, and can cut down on The [build] arguments must be either directories or tarballs, each containing a SlackBuild script, slack-desc, README, and .info file. -With no [build] arguments, the current directory is checked. +With no [build] arguments, the current directory is checked. To +read a list of builds from standard input, use B<->. B<sbolint> will flag errors for problems that would prevent the build from being accepted by the upload form (or by the SBo admins, @@ -366,6 +367,10 @@ GetOptions( "mono|no-color|no-colour|m" => sub { $color_output = 0; }, ) or die_usage("Error in command line options"); +if(@ARGV && $ARGV[0] eq '-') { + $stdin = 1; +} + if($color_output) { $red = "\x1b[1;31m"; $yellow = "\x1b[1;33m"; |