aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-05-02 20:01:49 +0200
committerJaquee <jaquee.monero@gmail.com>2017-05-02 20:19:11 +0200
commitaf1edc0c95f4cbc82c58be0856d3eb66a21d09e6 (patch)
treed06bf992f58d4fa05fcdae4847309257979c5be1
parent4ca35af11ac8b41192bdb373216513e524ee4cb0 (diff)
downloadmonzero-gui-af1edc0c95f4cbc82c58be0856d3eb66a21d09e6.tar.gz
monzero-gui-af1edc0c95f4cbc82c58be0856d3eb66a21d09e6.tar.xz
monzero-gui-af1edc0c95f4cbc82c58be0856d3eb66a21d09e6.zip
fix version info
-rwxr-xr-xbuild.sh4
-rwxr-xr-xutils.sh6
2 files changed, 8 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 80756ce9..5875eba9 100755
--- a/build.sh
+++ b/build.sh
@@ -78,11 +78,11 @@ fi
# force version update
get_tag
-echo "var GUI_VERSION = \"$VERSIONTAG\"" > version.js
+echo "var GUI_VERSION = \"$TAGNAME\"" > version.js
pushd "$MONERO_DIR"
get_tag
popd
-echo "var GUI_MONERO_VERSION = \"$VERSIONTAG\"" >> version.js
+echo "var GUI_MONERO_VERSION = \"$TAGNAME\"" >> version.js
cd build
qmake ../monero-wallet-gui.pro "$CONFIG" || exit
diff --git a/utils.sh b/utils.sh
index 556cc5d3..fcaaa69d 100755
--- a/utils.sh
+++ b/utils.sh
@@ -53,6 +53,12 @@ function get_tag()
echo "You are ahead of or behind a tagged release"
VERSIONTAG="$COMMIT"
fi
+ # save tag name + commit if availible
+ TAGNAME=$(git describe | sed -e 's/[\t ]*//')
+ if test -z "$TAGNAME"
+ then
+ TAGNAME="$VERSIONTAG"
+ fi
fi
fi
}