[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] prevent make from going crazy without SUITE
From: |
Richard Guenther |
Subject: |
[PATCH] prevent make from going crazy without SUITE |
Date: |
Wed, 8 Jan 2003 17:10:02 +0100 (CET) |
Hi!
The following patch prevents make from going crazy without a
configured tree (i.e. no SUITE) (remember: exit 1 doesnt do
anything good in $(shell ...) invocations...)
Ok?
Richard.
diff -Nru a/r2/config/Shared/findsuite.sh b/r2/config/Shared/findsuite.sh
--- a/r2/config/Shared/findsuite.sh Wed Jan 8 17:09:35 2003
+++ b/r2/config/Shared/findsuite.sh Wed Jan 8 17:09:35 2003
@@ -28,11 +28,12 @@
cd $1
-flist=`ls -1 config/*.suite.mk`
+flist=`ls 2>/dev/null -1 config/*.suite.mk`
-if [ "$flist" = "" ]; then
- echo "Cannot find SUITE file. SUITE not set."
- exit 1
+if test -z "$flist"; then
+# return some weird suite to let make fail
+ echo "#NoSuiteFound"
+ exit
fi
for f in $flist; do
- [PATCH] prevent make from going crazy without SUITE,
Richard Guenther <=