aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-06-21 04:58:05 -0400
committerB. Watson <urchlay@slackware.uk>2023-06-21 04:58:05 -0400
commit1d07a7b3e9e2183b2b5daf175403a3c0b30457c4 (patch)
treee0b0f613cfc3bc55b24024be946ee9814fa0515c
parentecdd88685078da6de7f65c684bc5d3f59d09a9f9 (diff)
downloadsbo-maintainer-tools-1d07a7b3e9e2183b2b5daf175403a3c0b30457c4.tar.gz
sbolint: re-add and document - for stdin.
-rwxr-xr-xsbolint7
1 files changed, 6 insertions, 1 deletions
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<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";