Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Vladimír Štill
ciutils
Commits
22133e35
Verified
Commit
22133e35
authored
Aug 12, 2020
by
Vladimír Štill
Browse files
Add makefilter
parent
a4286bc8
Changes
1
Show whitespace changes
Inline
Side-by-side
makefilter
0 → 100755
View file @
22133e35
#!/usr/bin/env perl
use
warnings
;
use
strict
;
use
Term::
ANSIColor
;
use
v5
.16
;
open
(
my
$full
,
"
>
",
"
make-full.log
");
my
$cut
=
0
;
while
(
<>
)
{
print
$full
$_
;
s/(error)/colored($1, 'bright_red')/
ei
;
print
if
not
$cut
;
if
(
/make: \*\*\* Waiting for unfinished jobs\.\.\./
)
{
$cut
=
1
;
say
"
[[[log cut by makefilter, full log in make-full.log]]]
";
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment