diff options
| author | Riccardo Spagni <ric@spagni.net> | 2016-10-04 12:25:57 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2016-10-04 12:25:57 +0200 |
| commit | d865103a732773ec53bd114d382f4e9a2ce6400a (patch) | |
| tree | d7c97cf208c9f59273ae65926f8b03182eb38cae /utils.sh | |
| parent | b3c9ba0868fd1180320ec17ec496a46cb4f808e1 (diff) | |
| parent | 3abee20196f1eae58268b5eebb85d952ebc78200 (diff) | |
| download | monzero-gui-d865103a732773ec53bd114d382f4e9a2ce6400a.tar.gz monzero-gui-d865103a732773ec53bd114d382f4e9a2ce6400a.tar.xz monzero-gui-d865103a732773ec53bd114d382f4e9a2ce6400a.zip | |
Merge pull request #30
3abee20 build: get_platform function reused (Ilya Kitaev)
af30cfd build: added "libunwind_off" config option so it can be built on other distros than Ubuntu (Ilya Kitaev)
Diffstat (limited to 'utils.sh')
| -rwxr-xr-x | utils.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/utils.sh b/utils.sh new file mode 100755 index 00000000..d6132941 --- /dev/null +++ b/utils.sh @@ -0,0 +1,29 @@ +#!/bin/bash + + +function get_platform { + local platform="unknown" + if [ "$(uname)" == "Darwin" ]; then + platform="darwin" + elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then + platform="linux" + elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then + platform="mingw64" + elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then + platform="mingw32" + fi + echo "$platform" + +} + + + + + + + + + + + + |
