Browse Source

Minor fixes to script/release to source env

pull/259/head
Ross McFarland 7 years ago
parent
commit
d6b0726a09
No known key found for this signature in database GPG Key ID: 61C10C4FC8FE4A89
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      script/release

+ 11
- 0
script/release View File

@ -5,6 +5,17 @@ set -e
cd "$(dirname $0)"/.. cd "$(dirname $0)"/..
ROOT=$(pwd) ROOT=$(pwd)
if [ -z "$VENV_NAME" ]; then
VENV_NAME="env"
fi
ACTIVATE="$VENV_NAME/bin/activate"
if [ ! -f "$ACTIVATE" ]; then
echo "$ACTIVATE does not exist, run ./script/bootstrap" >&2
exit 1
fi
. "$ACTIVATE"
VERSION=$(grep __VERSION__ $ROOT/octodns/__init__.py | sed -e "s/.* = '//" -e "s/'$//") VERSION=$(grep __VERSION__ $ROOT/octodns/__init__.py | sed -e "s/.* = '//" -e "s/'$//")
git tag -s v$VERSION -m "Release $VERSION" git tag -s v$VERSION -m "Release $VERSION"


Loading…
Cancel
Save