| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,9 +11,10 @@ ChooseBuildType () { | |||
| 11 | 11 | ||
| 12 | 12 | # Print a menu for build type | |
| 13 | 13 | echo "Select the build type:" | |
| 14 | - echo. | ||
| 14 | + echo "" | ||
| 15 | 15 | echo -e "\t1) Release" | |
| 16 | 16 | echo -e "\t2) Debug" | |
| 17 | + echo "" | ||
| 17 | 18 | ||
| 18 | 19 | # Request a choice in build type | |
| 19 | 20 | read choice | |
@@ -37,13 +38,13 @@ ChooseBuildType () { | |||
| 37 | 38 | ChooseSDK () { | |
| 38 | 39 | ||
| 39 | 40 | echo "Choose the SDK you wish to build against:" | |
| 40 | - echo. | ||
| 41 | + echo "" | ||
| 41 | 42 | ||
| 42 | 43 | # Store a base counting variable | |
| 43 | 44 | num=0 | |
| 44 | 45 | ||
| 45 | 46 | # 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) | ||
| 47 | 48 | do | |
| 48 | 49 | ||
| 49 | 50 | # Increment the counter | |
@@ -60,7 +61,7 @@ ChooseSDK () { | |||
| 60 | 61 | echo -e "\t$num) $name" | |
| 61 | 62 | done | |
| 62 | 63 | ||
| 63 | - echo. | ||
| 64 | + echo "" | ||
| 64 | 65 | ||
| 65 | 66 | # Request a choice of sdk | |
| 66 | 67 | read choice | |
@@ -80,18 +81,19 @@ ChooseSDK () { | |||
| 80 | 81 | name=option_$choice | |
| 81 | 82 | name=${!name} | |
| 82 | 83 | ||
| 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 | - | ||
| 89 | 84 | # Get the build type | |
| 90 | 85 | ChooseBuildType $name | |
| 91 | 86 | ||
| 92 | 87 | fi | |
| 93 | 88 | ||
| 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 | + | ||
| 94 | 95 | # Build the binaries | |
| 96 | + make clean | ||
| 95 | 97 | make | |
| 96 | 98 | } | |
| 97 | 99 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,13 +8,13 @@ SDKDIR=$STARTDIR/makefiles/sdk | |||
| 8 | 8 | ChooseSDK () { | |
| 9 | 9 | ||
| 10 | 10 | echo "Choose the SDK you wish to download:" | |
| 11 | - echo. | ||
| 11 | + echo "" | ||
| 12 | 12 | ||
| 13 | 13 | # Store a base counting variable | |
| 14 | 14 | num=0 | |
| 15 | 15 | ||
| 16 | 16 | # 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) | ||
| 18 | 18 | do | |
| 19 | 19 | ||
| 20 | 20 | # Increment the counter | |
@@ -31,7 +31,7 @@ ChooseSDK () { | |||
| 31 | 31 | echo -e "\t$num) $file" | |
| 32 | 32 | done | |
| 33 | 33 | ||
| 34 | - echo. | ||
| 34 | + echo "" | ||
| 35 | 35 | ||
| 36 | 36 | # Request a choice of sdk | |
| 37 | 37 | read choice | |
| Back | FazBrowse Home | New Git URL |
0 commit comments