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"