Skip to content

Commit

Permalink
Add message before exit and make find more specific in docs script
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay Kannan committed Apr 6, 2016
1 parent 7742d0e commit de646c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions utilities/after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" ]; then
SITE_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev '(^\[|\w+:)')
echo "Used the maven-help-plugin to determine that the version is $SITE_VERSION"
if [ "$SITE_VERSION" == "" ]; then
echo "Could not determine the version, so we're exiting."
exit 1
fi
if [ "${SITE_VERSION##*-}" != "SNAPSHOT" ]; then
Expand Down
2 changes: 1 addition & 1 deletion utilities/update_docs_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RELEASED_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate
if [ "${RELEASED_VERSION##*-}" != "SNAPSHOT" ]; then
echo "Changing version to $RELEASED_VERSION in README files"
# Get list of directories for which README.md must be updated
module_folders=($(find . -maxdepth 2 -name 'gcloud-java*' -type d) .)
module_folders=($(find . -maxdepth 2 \( -regex "./gcloud-java-[a-z]*" -o -regex "./gcloud-java-contrib/gcloud-java-[a-z]*" \) -type d) . ./gcloud-java)
for item in ${module_folders[*]}
do
sed -ri "s/<version>[0-9]+\.[0-9]+\.[0-9]+<\/version>/<version>${RELEASED_VERSION}<\/version>/g" ${item}/README.md
Expand Down

0 comments on commit de646c6

Please sign in to comment.