From 2e27ece0a0674fed7f542583bc261d4bbfab0bd3 Mon Sep 17 00:00:00 2001 From: s0600204 Date: Mon, 14 Dec 2020 02:22:58 +0000 Subject: [PATCH] (2/2) Update premake5 to Alpha 15 - shell scripts Update build shell scripts to use premake5 `gmake2.*` directories. (The old `gmake.*` directories have been removed from premake5.) Differential Revision: https://code.wildfiregames.com/D3219 This was SVN commit r24388. --- build/workspaces/clean-workspaces.sh | 12 +++++++++--- build/workspaces/update-workspaces.sh | 8 ++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/build/workspaces/clean-workspaces.sh b/build/workspaces/clean-workspaces.sh index 2edfae36a1..5555e6aa95 100755 --- a/build/workspaces/clean-workspaces.sh +++ b/build/workspaces/clean-workspaces.sh @@ -51,9 +51,15 @@ fi (cd ../../libraries/source/spidermonkey && rm -rf ./mozjs31) (cd ../../libraries/source/spidermonkey && rm -rf ./mozjs24) -(cd ../premake/premake5/build/gmake.bsd && ${MAKE} clean) -(cd ../premake/premake5/build/gmake.macosx && ${MAKE} clean) -(cd ../premake/premake5/build/gmake.unix && ${MAKE} clean) +# Delete former premake5 gmake.* directories +(cd ../premake/premake5/build && rm -rf ./gmake.bsd) +(cd ../premake/premake5/build && rm -rf ./gmake.macosx) +(cd ../premake/premake5/build && rm -rf ./gmake.unix) + +# Cleanup current premake directories +(cd ../premake/premake5/build/gmake2.bsd && ${MAKE} clean) +(cd ../premake/premake5/build/gmake2.macosx && ${MAKE} clean) +(cd ../premake/premake5/build/gmake2.unix && ${MAKE} clean) echo "Removing generated test files..." diff --git a/build/workspaces/update-workspaces.sh b/build/workspaces/update-workspaces.sh index c31e16bc77..36848e0c19 100755 --- a/build/workspaces/update-workspaces.sh +++ b/build/workspaces/update-workspaces.sh @@ -103,17 +103,17 @@ premake_command="premake5" if [ "$with_system_premake5" = "false" ]; then # Build bundled premake cd ../premake/premake5 - PREMAKE_BUILD_DIR=build/gmake.unix + PREMAKE_BUILD_DIR=build/gmake2.unix # BSD and OS X need different Makefiles case "`uname -s`" in "GNU/kFreeBSD" ) - # use default gmake.unix (needs -ldl as we have a GNU userland and libc) + # use default gmake2.unix (needs -ldl as we have a GNU userland and libc) ;; *"BSD" ) - PREMAKE_BUILD_DIR=build/gmake.bsd + PREMAKE_BUILD_DIR=build/gmake2.bsd ;; "Darwin" ) - PREMAKE_BUILD_DIR=build/gmake.macosx + PREMAKE_BUILD_DIR=build/gmake2.macosx ;; esac ${MAKE} -C $PREMAKE_BUILD_DIR ${JOBS} || die "Premake build failed"