|
From: darcagn <da...@us...> - 2024-06-06 04:39:37
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "A pseudo Operating System for the Dreamcast.".
The branch, master has been updated
via 91669fdcbd01cbc0b79babee21cd3727262d7396 (commit)
from 6e29d295e92995fda1fb2213d43b35bb168fef71 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 91669fdcbd01cbc0b79babee21cd3727262d7396
Author: Colton Pawielski <cep...@us...>
Date: Wed Jun 5 23:38:48 2024 -0500
Return error code on example build failure (#606)
-----------------------------------------------------------------------
Summary of changes:
examples/dreamcast/Makefile | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/examples/dreamcast/Makefile b/examples/dreamcast/Makefile
index 1b36dc2f..546a2f86 100644
--- a/examples/dreamcast/Makefile
+++ b/examples/dreamcast/Makefile
@@ -20,12 +20,14 @@ all:
$(KOS_MAKE) check-dir DIR=$$dir; \
done;
- @if [ -f errors.txt ]; then \
+ @error_count=$$(cat error_count.txt 2>/dev/null || echo 0); \
+ if [ -f errors.txt ]; then \
echo "\n-------------------------------------------------"; \
- echo "$$(cat error_count.txt 2>/dev/null || echo 0) error(s) occurred during the build process:"; \
+ echo "$$error_count error(s) occurred during the build process:"; \
cat errors.txt; \
- fi;
- @rm -f errors.txt error_count.txt
+ fi; \
+ rm -f errors.txt error_count.txt; \
+ exit $$error_count
# ALGORITHM EXPLANATION:
# This script recursively checks each directory to determine if it should
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|