diff --git a/build_all.sh b/build_all.sh index 9aec2531..687f6067 100755 --- a/build_all.sh +++ b/build_all.sh @@ -3,3 +3,4 @@ ./get_gamepacks.sh ./build_game.sh ./build_editor.sh +./build_tools.sh diff --git a/build_engine.sh b/build_engine.sh index 7537e08a..e8409cac 100755 --- a/build_engine.sh +++ b/build_engine.sh @@ -102,13 +102,6 @@ gmake -j $BUILD_PROC qcc-rel cp -v ./release/fteqcc ../../../bin/fteqcc printf "Built the QuakeC compiler successfully.\n\n" - -if [ "$BUILD_IQMTOOL" -eq 1 ]; then - gmake -j $BUILD_PROC iqm-rel - cp -v ./release/iqmtool ../../../bin/iqmtool - printf "Built the iqmtool successfully.\n\n" -fi - if [ "$BUILD_IMGTOOL" -eq 1 ]; then gmake -j $BUILD_PROC imgtool-rel cp -v ./release/imgtool ../../../bin/imgtool diff --git a/build_tools.sh b/build_tools.sh new file mode 100755 index 00000000..822e2505 --- /dev/null +++ b/build_tools.sh @@ -0,0 +1,50 @@ +#!/bin/sh +. ./build.cfg + +if ! [ -x "$(command -v git)" ]; then + printf "'git' is not installed.\n" + exit +fi + +set -e + +VVM_MAKEFILE=./src/vvmtool/Makefile +COMPILE_SYS=$(uname) + +# Check how many cores/processors we should use for building +if ! [ -x "$(command -v nproc)" ]; then + # check if we're on OpenBSD then + if ! [ -x "$(command -v sysctl)" ]; then + BUILD_PROC=1 + else + BUILD_PROC=$(sysctl -n hw.ncpu) + fi +else + BUILD_PROC=$(nproc) +fi + +mkdir -p ./bin + +if [ -f "$VVM_MAKEFILE" ]; then + if [ "$BUILD_UPDATE" -eq 1 ]; then + printf "vvmtool is present, updating...\n" + cd ./src/vvmtool + git pull + else + cd ./src/vvmtool + fi +else + printf "vvmtool is NOT present, cloning...\n" + cd ./src/ + git clone https://github.com/VeraVisions/vvmtool + cd ./vvmtool +fi + +if [ "$BUILD_CLEAN" -eq 1 ]; then + gmake clean +fi + +gmake -j $BUILD_PROC +printf "Built vvmtool successfully.\n" +cp -v vvm ../../bin/vvm +printf "DONE. Built ALL components successfully.\n" diff --git a/src/menu-fn/m_main.qc b/src/menu-fn/m_main.qc index bf0d8283..6efd5c64 100644 --- a/src/menu-fn/m_main.qc +++ b/src/menu-fn/m_main.qc @@ -384,7 +384,6 @@ menu_main_draw(void) vector ofs = drawgetimagesize(g_bmp[LOGO_STATIC]); drawpic([g_menuofs[0] + 320 - (ofs[0] / 2),g_menuofs[1] + 48], g_bmp[LOGO_STATIC], ofs, [1,1,1], 1.0f); - } Widget_Draw(fn_main);