Files
Iris/build_tools/release.sh

30 lines
664 B
Bash
Raw Permalink Normal View History

2017-09-21 09:22:32 +12:00
#!/bin/bash
2017-10-02 08:38:33 +13:00
##
# 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.
##
2017-10-14 20:27:47 +13:00
VERSION=$(cat VERSION.md)
2017-09-21 09:22:32 +12:00
2017-09-21 09:23:57 +12:00
echo -e "Releasing $VERSION"
2017-09-21 09:22:32 +12:00
echo -e "git add -A"
ADD=$(git add -A)
echo -e $ADD
2017-09-21 09:23:57 +12:00
echo -e "git commit -m 'Releasing $VERSION'"
COMMIT=$(git commit -m "Releasing $VERSION")
2017-09-21 09:22:32 +12:00
echo -e $COMMIT
2017-09-21 09:23:57 +12:00
echo -e "git tag -a '$VERSION' -m 'Releasing $VERSION'"
TAG=$(git tag -a "$VERSION" -m "Releasing $VERSION")
2017-09-21 09:22:32 +12:00
echo -e $TAG
2017-09-21 09:27:58 +12:00
echo -e "git push origin $VERSION"
PUSH=$(git push origin "$VERSION")
2017-09-21 09:25:25 +12:00
echo -e $PUSH
2017-09-21 09:22:32 +12:00
echo -e "\x1b[32;01m"Done!"\x1b[39;49;00m"