Skip to content

Commit

Permalink
Fix or add missing premake workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
danielappelt committed Nov 16, 2020
1 parent 88a6265 commit 992fb8c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5290d5a..6db0525 100755
fi

+if [ ! -f premake ]; then
+ wget https://github.com/kunitoki/juced/raw/master/tools/linux/premake; chmod +x premake
+ mkdir tmp; cd tmp && wget --quiet http://archive.ubuntu.com/ubuntu/pool/universe/p/premake/premake_3.7-1_amd64.deb && dpkg -x premake_3.7-1_amd64.deb . && mv ./usr/bin/premake ../ && cd .. && rm -rf tmp
+fi
+PREMAKE=$(pwd)/premake
+
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/scripts/premake-update.sh b/premake-update.sh
index 5290d5a..6db0525 100755
--- a/scripts/premake-update.sh
+++ b/scripts/premake-update.sh
@@ -26,9 +26,14 @@ if [ -d ../libs ]; then
cd ..
fi

+if [ ! -f premake ]; then
+ mkdir tmp; cd tmp && wget --quiet http://archive.ubuntu.com/ubuntu/pool/universe/p/premake/premake_3.7-1_amd64.deb && dpkg -x premake_3.7-1_amd64.deb . && mv ./usr/bin/premake ../ && cd .. && rm -rf tmp
+fi
+PREMAKE=$(pwd)/premake
+
run_premake()
{
- premake --os $1 --target gnu --cc gcc
+ $PREMAKE --os $1 --target gnu --cc gcc

if [ $MAC == 1 ]; then
sed -i -e "s|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS) \$(TARGET_ARCH)|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS)|" `find . -name \*.make`

0 comments on commit 992fb8c

Please sign in to comment.