From 4948570a47539ce7d17e825af6422a63d03bc616 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Mon, 2 Oct 2017 08:38:33 +1300 Subject: [PATCH] Adding comments; Fixed #185 --- build_tools/auth.php | 12 ++++++++++-- build_tools/build.js | 9 +++++++++ build_tools/build.sh | 27 --------------------------- build_tools/release.sh | 7 +++++++ 4 files changed, 26 insertions(+), 29 deletions(-) delete mode 100755 build_tools/build.sh diff --git a/build_tools/auth.php b/build_tools/auth.php index 63b0b7f1..cb774118 100755 --- a/build_tools/auth.php +++ b/build_tools/auth.php @@ -1,10 +1,18 @@ &1 >/dev/null - -# create HTML files -echo -e Copying index.html -cp src/index.html mopidy_iris/static/index.html - -echo -e "Setting version in static HTML" -sed -i 's/VERSION_HERE/'$VERSION'/g' mopidy_iris/static/index.html -sed -i 's/BUILD_HERE/'$BUILD'/g' mopidy_iris/static/index.html - -echo -e "Setting version in Python" -sed -i "/__version__ = '/c\__version__ = '"$VERSION"'" mopidy_iris/__init__.py - -echo -e "Setting version in NPM" -sed -i '/ "version": "/c\ "version": "'$VERSION'",' package.json - -echo -e "\x1b[32;01m"Done!"\x1b[39;49;00m" \ No newline at end of file diff --git a/build_tools/release.sh b/build_tools/release.sh index 1c4781b3..89dd783f 100755 --- a/build_tools/release.sh +++ b/build_tools/release.sh @@ -1,5 +1,12 @@ #!/bin/bash +## +# Release Iris +# +# This provides shortcuts to the Git commands during a release. Essentially it commits +# everything and creates a new tag, based on the current version number. +## + VERSION=$(cat VERSION.md) echo -e "Releasing $VERSION"