From a1ccf22d8728e823c4587afc68c59138ed8207ce Mon Sep 17 00:00:00 2001 From: Chris Kim Date: Fri, 15 May 2015 19:00:08 -0400 Subject: [PATCH] fix premake scripts --- premake/gmake.sh | 13 +++++++++++++ premake/gmake_linux.sh | 3 --- premake/gmake_osx.sh | 3 --- premake/{demboyz.lua => premake5.lua} | 0 premake/vs2013.bat | 2 +- 5 files changed, 14 insertions(+), 7 deletions(-) create mode 100755 premake/gmake.sh delete mode 100644 premake/gmake_linux.sh delete mode 100644 premake/gmake_osx.sh rename premake/{demboyz.lua => premake5.lua} (100%) diff --git a/premake/gmake.sh b/premake/gmake.sh new file mode 100755 index 0000000..40060c3 --- /dev/null +++ b/premake/gmake.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +if [ "$(uname)" == "Darwin" ]; then + # Do something under Mac OS X platform + ./premake5_osx gmake --file=premake5.lua +elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then + # Do something under Linux platform + ./premake5_linux gmake --file=premake5.lua +elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then + # Do something under Windows NT platform + echo "windows? don't use this" +fi + diff --git a/premake/gmake_linux.sh b/premake/gmake_linux.sh deleted file mode 100644 index 7a5fb4d..0000000 --- a/premake/gmake_linux.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -./premake5_linux gmake --file=demboyz.lua diff --git a/premake/gmake_osx.sh b/premake/gmake_osx.sh deleted file mode 100644 index d052039..0000000 --- a/premake/gmake_osx.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -./premake5_osx gmake --file=demboyz.lua diff --git a/premake/demboyz.lua b/premake/premake5.lua similarity index 100% rename from premake/demboyz.lua rename to premake/premake5.lua diff --git a/premake/vs2013.bat b/premake/vs2013.bat index 8dae9d3..6dd7403 100644 --- a/premake/vs2013.bat +++ b/premake/vs2013.bat @@ -1,4 +1,4 @@ -premake5 --file=demboyz.lua vs2013 +premake5 --file=premake5.lua vs2013 pause