@@ -96,6 +96,19 @@ check_lib_dir()
fi
}
+check_bin_dir()
+{
+ if [ ! -d "$BIN_DIR" ]
+ then
+ mkdir "$BIN_DIR"
+ if [ $? -ne 0 ]
+ echo "ERROR creating <$BIN_DIR> directory"
+ fi
+}
+
build_libs()
{
export HARVEY="$_BUILD_DIR"
@@ -182,6 +195,7 @@ else
;;
"all")
+ check_bin_dir
check_lib_dir
build_go_utils
build_libs
@@ -208,6 +222,7 @@ else
"cmd")
build_cmds
"cleanall"|"cleancmd"|"cleankernel"|"cleanklibs"|"cleanlibs")
@@ -8,6 +8,7 @@ BASEDIR=${_BUILD_DIR}
INC_DIR=${BASEDIR}/sys/include
INC_ARCH=${BASEDIR}/${ARCH}/include
LIB_DIR=${BASEDIR}/${ARCH}/lib
+BIN_DIR=${BASEDIR}/${ARCH}/bin
SRC_DIR=${BASEDIR}/sys/src
UTIL_DIR=${_BUILD_DIR}/util
CMD_DIR=${SRC_DIR}/cmd