Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
f9035b1e
Commit
f9035b1e
authored
Oct 22, 2010
by
Tobias Hunger
Browse files
Add script to convert krazy output into a tasks file
parent
7cc6b469
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/krazy2tasks.pl
0 → 100755
View file @
f9035b1e
#!/usr/bin/perl -w
use
strict
;
my
$file
=
shift
;
die
"
No .tasks file given to save data into.
"
unless
(
$file
);
open
(
PIPE
,
"
krazy2all . --export textedit |
")
or
die
"
Could not start krazy2all, please make sure it is in your PATH.
";
open
(
FILE
,
"
>
$file
")
or
die
"
Failed to open
\"
$file
\"
for writing.
";
while
(
<
PIPE
>
)
{
my
$line
=
$_
;
chomp
$line
;
next
unless
$line
=~
/^(.*):(\d+):(.*)$/
;
my
$file
=
$
1
;
my
$lineno
=
$
2
;
my
$description
=
$
3
;
next
if
$file
=~
/\/3rdparty\//
;
print
FILE
"
$file
\t
$lineno
\t
WARN
\t
Krazy:
$description
\n
";
}
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