Skip to content

Commit

Permalink
HHH-5646 Improved error handling and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hferentschik committed Oct 12, 2010
1 parent e316921 commit 6afe269
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tagRelease.sh
Expand Up @@ -5,7 +5,9 @@
#
# Replacement for the maven-release-plugin
################################################################################

# be defensive and stop the script
set -o nounset # when there are uninitalised variables
set -o errexit # or when statements return non true values

usage="Usage: tagRelease [-u] [-e exportDirectory] [-r releaseVersion] [-d devVersion]"
projectDir=`pwd`
Expand All @@ -30,7 +32,7 @@ updatePomVersionsAndCommit() {
$i > tmp
mv tmp $i
done
git commit -a -m "Updating pom versions to $1 for release tagging"
git commit -a -m "Updating pom versions to $2"
}

################################################################################
Expand Down Expand Up @@ -100,5 +102,5 @@ git tag -m "Tagging $releaseVersion release" $releaseVersion
updatePomVersionsAndCommit $projectDir $devVersion

if [ $exportDirectory ]; then
git archive HEAD | tar -x -C $exportDirectory
git archive $releaseVersion | tar -x -C $exportDirectory
fi

0 comments on commit 6afe269

Please sign in to comment.