From 2ce8c9dedc376346efea788fd8a9320deb252c61 Mon Sep 17 00:00:00 2001 From: nishi Date: Sat, 11 May 2024 02:28:40 +0000 Subject: [PATCH] better build.sh git-svn-id: file:///raid/svn-main/nishi-mandshurica/trunk@82 f982e544-4a7d-3444-ad1a-fde59a2a69f1 --- build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 2d8f4d4..f66d8ec 100755 --- a/build.sh +++ b/build.sh @@ -6,9 +6,13 @@ if [ "$?" = "0" ]; then else MAKE=make fi +EXITCODE=0 +touch auth.db login.db project.db if [ "`uname -s`" = "NetBSD" ]; then $MAKE PREFIX=`pwd` DATABASE_PREFIX=`pwd` MODULE_PREFIX=`pwd`/Module WEBROOT_PREFIX=`pwd`/Webroot PROJECTS_PREFIX=`pwd`/Projects TOOL_PREFIX=`pwd`/Tool -j`cat /proc/cpuinfo | grep proc | wc -l` + EXITCODE=$? else $MAKE PREFIX=`pwd` DATABASE_PREFIX=`pwd` MODULE_PREFIX=`pwd`/Module WEBROOT_PREFIX=`pwd`/Webroot PROJECTS_PREFIX=`pwd`/Projects TOOL_PREFIX=`pwd`/Tool -j`nproc` + EXITCODE=$? fi -exit $? +exit $EXITCODE -- 2.43.0