aboutsummaryrefslogtreecommitdiff
path: root/utils.sh
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-10-04 12:25:57 +0200
committerRiccardo Spagni <ric@spagni.net>2016-10-04 12:25:57 +0200
commitd865103a732773ec53bd114d382f4e9a2ce6400a (patch)
treed7c97cf208c9f59273ae65926f8b03182eb38cae /utils.sh
parentb3c9ba0868fd1180320ec17ec496a46cb4f808e1 (diff)
parent3abee20196f1eae58268b5eebb85d952ebc78200 (diff)
downloadmonzero-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-xutils.sh29
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"
+
+}
+
+
+
+
+
+
+
+
+
+
+
+