]> Nishi Git Mirror - mandshurica.git/commitdiff
better build.sh
authornishi <nishi@f982e544-4a7d-3444-ad1a-fde59a2a69f1>
Sat, 11 May 2024 02:28:40 +0000 (02:28 +0000)
committernishi <nishi@f982e544-4a7d-3444-ad1a-fde59a2a69f1>
Sat, 11 May 2024 02:28:40 +0000 (02:28 +0000)
git-svn-id: file:///raid/svn-main/nishi-mandshurica/trunk@82 f982e544-4a7d-3444-ad1a-fde59a2a69f1

build.sh

index 2d8f4d461fc80daf8a7be712e0355636dc3e9db9..f66d8ec7e2f80b9b39ec13bb2425555186a5d445 100755 (executable)
--- 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