From: nishi Date: Sat, 11 May 2024 02:28:40 +0000 (+0000) Subject: better build.sh X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=2ce8c9dedc376346efea788fd8a9320deb252c61;p=mandshurica.git better build.sh git-svn-id: file:///raid/svn-main/nishi-mandshurica/trunk@82 f982e544-4a7d-3444-ad1a-fde59a2a69f1 --- 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