Skip to content

Commit

Permalink
Ensure readme has changelog entry for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Aug 22, 2013
1 parent ff844b2 commit 0f53159
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bin/svn-push
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,19 @@ if [ -z "$plugin_version" ]; then
exit 1
fi

if ! grep -q "$plugin_version" readme.txt; then
echo "Please update readme.txt to include $plugin_version in changelog"
exit 1
fi

if git show-ref --tags --quiet --verify -- "refs/tags/$plugin_version"; then
echo "Plugin version $plugin_version already tagged. Please bump version and try again"
exit 1
fi

echo "Tagging plugin version $plugin_version"
git tag $plugin_version master
git push origin $plugin_version
git tag "$plugin_version" master
git push origin "$plugin_version"

if [ ! -e $svn_repo_dir ]; then
svn checkout $svn_url $svn_repo_dir
Expand Down

0 comments on commit 0f53159

Please sign in to comment.