Sha256: 9fb40f8a9e12df746a60c648cc70258551b9c790a719c43a6886405f4e23ac80

Contents?: true

Size: 652 Bytes

Versions: 78

Compression:

Stored size: 652 Bytes

Contents

#!/usr/bin/env bash

SETUP_DOT_PY=$1
VERSION=`extract-egg-version $SETUP_DOT_PY`

echo -e "\033[0;32mTrying to publish version $VERSION\033[0m"

git tag | grep "^v$VERSION$" > /dev/null
if [ $? != '0' ]; then
  echo -e "\033[1;31mYou need to create the \033[0;33mv$VERSION\033[1;31m tag first.\033[0m"
  exit 1
fi

TAG_REV=`git rev-list -n1 v$VERSION`
HEAD_REV=`git rev-parse HEAD`

if [ $TAG_REV != $HEAD_REV ]; then
  echo -e "\033[1;31mYou're attempting to publish \033[0;33m$HEAD_REV\033[1;31m as \033[0;33mv$VERSION\033[1;31m but it already points to \033[0;33m$TAG_REV\033[1;31m.\033[0m"
  exit 1
fi

echo -e "\033[0;32mAll clear!\033[0m"
exit 0

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 lib/snippets/assert-egg-version-tag
shipit-engine-0.38.0 lib/snippets/assert-egg-version-tag
shipit-engine-0.37.0 lib/snippets/assert-egg-version-tag
shipit-engine-0.36.1 lib/snippets/assert-egg-version-tag
shipit-engine-0.36.0 lib/snippets/assert-egg-version-tag
shipit-engine-0.35.1 lib/snippets/assert-egg-version-tag
shipit-engine-0.35.0 lib/snippets/assert-egg-version-tag
shipit-engine-0.34.0 lib/snippets/assert-egg-version-tag
shipit-engine-0.33.0 lib/snippets/assert-egg-version-tag
shipit-engine-0.32.0 lib/snippets/assert-egg-version-tag
shipit-engine-0.31.0 lib/snippets/assert-egg-version-tag
shipit-engine-0.30.0 lib/snippets/assert-egg-version-tag
shipit-engine-0.29.0 lib/snippets/assert-egg-version-tag
shipit-engine-0.28.1 lib/snippets/assert-egg-version-tag
shipit-engine-0.28.0 lib/snippets/assert-egg-version-tag
shipit-engine-0.27.1 lib/snippets/assert-egg-version-tag
shipit-engine-0.27.0 lib/snippets/assert-egg-version-tag
shipit-engine-0.26.0 lib/snippets/assert-egg-version-tag
shipit-engine-0.25.1 lib/snippets/assert-egg-version-tag
shipit-engine-0.25.0 lib/snippets/assert-egg-version-tag