aboutsummaryrefslogtreecommitdiff
path: root/utils.sh
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-10-28 01:22:37 -0700
committerAlexander Blair <snipa@jagtech.io>2020-10-28 01:22:38 -0700
commit04429e85e6ccedee455eaf3b3b50fbecc6d9a083 (patch)
tree4088bb7cf2915069c3eaad3253a679686657f084 /utils.sh
parente52d86d44229c531af6f60b375be27fe739bdfa7 (diff)
parent9d2f083a973808a75a7a38b63e86d65339df02f5 (diff)
downloadmonzero-gui-04429e85e6ccedee455eaf3b3b50fbecc6d9a083.tar.gz
monzero-gui-04429e85e6ccedee455eaf3b3b50fbecc6d9a083.tar.xz
monzero-gui-04429e85e6ccedee455eaf3b3b50fbecc6d9a083.zip
Merge pull request #3159
9d2f083a repo: cleanup qmake (selsta)
Diffstat (limited to 'utils.sh')
-rwxr-xr-xutils.sh74
1 files changed, 0 insertions, 74 deletions
diff --git a/utils.sh b/utils.sh
deleted file mode 100755
index 76938d99..00000000
--- a/utils.sh
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/bash
-
-
-function get_platform {
- local platform="unknown"
- if [ "$(uname)" == "Darwin" ]; then
- platform="darwin"
- elif [ "$(uname)" == "FreeBSD" ]; then
- platform="freebsd"
- elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
- if [ "$(expr substr $(uname -m) 1 6)" == "x86_64" ]; then
- platform="linux64"
- elif [ "$(expr substr $(uname -m) 1 4)" == "i686" ]; then
- platform="linux32"
- elif [ "$(expr substr $(uname -m) 1 6)" == "armv7l" ]; then
- platform="linuxarmv7"
- elif [ "$(expr substr $(uname -m) 1 7)" == "aarch64" ]; then
- platform="linuxarmv8"
- else
- platform="linux"
- fi
- 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"
-
-}
-
-
-function get_tag()
-{
- COMMIT=$(git rev-parse --short HEAD | sed -e 's/[\t ]*//')
- if test $? -ne 0
- then
- echo "Cannot determine current commit. Make sure that you are building either from a Git working tree or from a source archive."
- VERSIONTAG="unknown"
- else
- echo "You are currently on commit ${COMMIT}"
- TAGGEDCOMMIT=$(git rev-list --tags --max-count=1 --abbrev-commit | sed -e 's/[\t ]*//')
- if test -z "$TAGGEDCOMMIT"
- then
- echo "Cannot determine most recent tag. Make sure that you are building either from a Git working tree or from a source archive."
- VERSIONTAG=$COMMIT
- else
- echo "The most recent tag was at ${TAGGEDCOMMIT}"
- if test "$TAGGEDCOMMIT" = "$COMMIT"
- then
- echo "You are building a tagged release"
- VERSIONTAG="release"
- else
- echo "You are ahead of or behind a tagged release"
- VERSIONTAG="$COMMIT"
- fi
- # save tag name + commit if availible
- TAGNAME=$(git describe --tags | sed -e 's/[\t ]*//')
- if test -z "$TAGNAME"
- then
- TAGNAME="$VERSIONTAG"
- fi
- fi
- fi
-}
-
-
-
-
-
-
-
-
-
-