Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Fix version setter in release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tony19 committed Mar 8, 2014
1 parent 2b379b7 commit dfdb899
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ if [ "x$1" == "x--dryrun" ]; then
fi
echo "Starting release process for logback-extensions ${version}..."

#
# Build the JAR and print its SHA1. The last line uses GNU sed (gsed)
# to update the README with the current release version.
#
mvnDryRun=
if [ ${dryrun} ]; then
mvnDryRun=-DdryRun=true
Expand All @@ -53,11 +49,11 @@ mvn -Dtag=v_${version} $mvnDryRun release:perform

# Update the version number in the README
echo "Updating README.md..."
gsed -i -e "s/\\d\+\.\\d\+\.\\d\+/${version}/" ${readme}
gsed -i -e "s/[0-9]\+.[0-9]\+.[0-9]\+/${version}/g" ${readme}

if [ ! ${dryrun} ]; then
git add ${readme}
git commit -m "Update README for release ${version}"
git commit -m "Update README for v_${version}"
else
echo '[dryrun] skip commit README...'
fi
Expand Down

0 comments on commit dfdb899

Please sign in to comment.