Skip to content

Commit 8e34023

Browse files
committed
Added patches to fix build issues on Windows.
Fixed a few errors in Build.sh and SDK.sh
1 parent ab3e9bc commit 8e34023

File tree

5 files changed

+492
-13
lines changed

5 files changed

+492
-13
lines changed

src/Build.sh

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ ChooseBuildType () {
1111

1212
# Print a menu for build type
1313
echo "Select the build type:"
14-
echo.
14+
echo ""
1515
echo -e "\t1) Release"
1616
echo -e "\t2) Debug"
17+
echo ""
1718

1819
# Request a choice in build type
1920
read choice
@@ -37,13 +38,13 @@ ChooseBuildType () {
3738
ChooseSDK () {
3839

3940
echo "Choose the SDK you wish to build against:"
40-
echo.
41+
echo ""
4142

4243
# Store a base counting variable
4344
num=0
4445

4546
# Loop through all sdks currently downloaded
46-
for directory in $(find $SDKDIR/* -type d -maxdepth 0)
47+
for directory in $(find $SDKDIR/* -maxdepth 0 -type d)
4748
do
4849

4950
# Increment the counter
@@ -60,7 +61,7 @@ ChooseSDK () {
6061
echo -e "\t$num) $name"
6162
done
6263

63-
echo.
64+
echo ""
6465

6566
# Request a choice of sdk
6667
read choice
@@ -80,18 +81,19 @@ ChooseSDK () {
8081
name=option_$choice
8182
name=${!name}
8283

83-
# Navigate to the Build directory (create it if it does not exist)
84-
if [ ! -d $PWD/Build ]; then
85-
mkdir $PWD/Build
86-
fi
87-
cd Build
88-
8984
# Get the build type
9085
ChooseBuildType $name
9186

9287
fi
9388

89+
# Navigate to the Build directory (create it if it does not exist)
90+
if [ ! -d $PWD/Build ]; then
91+
mkdir $PWD/Build
92+
fi
93+
cd Build
94+
9495
# Build the binaries
96+
make clean
9597
make
9698
}
9799

src/SDK.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ SDKDIR=$STARTDIR/makefiles/sdk
88
ChooseSDK () {
99

1010
echo "Choose the SDK you wish to download:"
11-
echo.
11+
echo ""
1212

1313
# Store a base counting variable
1414
num=0
1515

1616
# Loop through all sdks supported by the plugin
17-
for filepath in $(find $SDKDIR -type f -maxdepth 1)
17+
for filepath in $(find $SDKDIR -maxdepth 1 -type f)
1818
do
1919

2020
# Increment the counter
@@ -31,7 +31,7 @@ ChooseSDK () {
3131
echo -e "\t$num) $file"
3232
done
3333

34-
echo.
34+
echo ""
3535

3636
# Request a choice of sdk
3737
read choice
26.1 MB
Binary file not shown.
16.4 MB
Binary file not shown.

0 commit comments

Comments
 (0)