Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Leibner
dune-common
Commits
386c7605
Commit
386c7605
authored
19 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
improved error detection
[[Imported from SVN: r2174]]
parent
b523a6e6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
am/checklog
+2
-2
2 additions, 2 deletions
am/checklog
bin/check-log-store.in
+9
-3
9 additions, 3 deletions
bin/check-log-store.in
with
11 additions
and
5 deletions
am/checklog
+
2
−
2
View file @
386c7605
...
...
@@ -36,7 +36,7 @@ check-log-libs-am:
$(LOG_SET_OPTIONS); \
for target in $(LTLIBRARIES); do \
$(MAKE) $$i >& $(LOG_FILE); \
$(LOG_STORE) "
build
" "$$target" "$$path" $(LOG_FILE) >& /dev/null; \
$(LOG_STORE) "
lib
" "$$target" "$$path" $(LOG_FILE) >& /dev/null; \
done;
check-log-build-am:
...
...
@@ -48,7 +48,7 @@ check-log-build-am:
check-log-test-am:
@LOG () { \
(
echo "$$1"
; echo )
> $(LOG_FILE).2; \
echo "$$1" > $(LOG_FILE).2; \
cat $(LOG_FILE) >> $(LOG_FILE).2; \
mv $(LOG_FILE).2 $(LOG_FILE); \
}; \
...
...
This diff is collapsed.
Click to expand it.
bin/check-log-store.in
+
9
−
3
View file @
386c7605
...
...
@@ -47,16 +47,22 @@ if ($mode ne "dir")
{
## parse logfile and count errors and warnings
my
$logfile
=
shift
||
die
$USAGE
;
my
$makeerrors
=
0
;
open
LOG
,
$logfile
||
die
"
Error reading
$logfile
";
while
(
<
LOG
>
)
{
$log
=
$log
.
$_
;
$errors
++
if
(
/error/i
);
$warnings
++
if
(
/warning/i
);
$errors
++
if
(
/error/i
&&
!
/^make/
);
$makeerrors
++
if
(
/error/i
&&
/^make/
);
$errors
++
if
(
/ld: cannot open/
);
$warnings
++
if
(
/warning/i
&&
!
/^make/
);
}
if
(
$makeerrors
>
$errors
+
$warnings
)
{
$errors
=
$makeerrors
;
}
close
LOG
;
}
else
if
(
$mode
eq
"
dir
")
{
## sum all errors and warings in entries with this newpath as path
my
$newpath
=
$path
.
'
/
'
.
$module
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment