From 1d07a7b3e9e2183b2b5daf175403a3c0b30457c4 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 21 Jun 2023 04:58:05 -0400 Subject: sbolint: re-add and document - for stdin. --- sbolint | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sbolint b/sbolint index c9767b4..d95b3bd 100755 --- a/sbolint +++ b/sbolint @@ -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 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"; -- cgit v1.2.3