From 0f5315981d70a63ee6afde0c1abe9d7a613235b5 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 21 Aug 2013 23:49:37 -0500 Subject: [PATCH] Ensure readme has changelog entry for new version --- bin/svn-push | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/svn-push b/bin/svn-push index 4520781..fb631dc 100755 --- a/bin/svn-push +++ b/bin/svn-push @@ -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