Skip to content

Commit

Permalink
Merge pull request #51 from jvirtanen/features/deploy
Browse files Browse the repository at this point in the history
scripts: Add 'deploy' script
  • Loading branch information
vaine committed Apr 15, 2014
2 parents 08d6172 + 1acd620 commit 34b4c54
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions scripts/deploy
@@ -0,0 +1,22 @@
#!/bin/sh

set -e

if [ $# -ne 2 ]; then
echo "Usage: `basename $0` <version> <deployment-repository>"
exit 2
fi

if [ -n "$(git status --porcelain)" ]; then
echo "Your repository contains local changes or unversioned files. Aborting." >&2
exit 1
fi

version=$1
deployment_repository=$2

git checkout "v$version"

mvn deploy -DaltDeploymentRepository=mine::default::file://$deployment_repository

git checkout -

0 comments on commit 34b4c54

Please sign in to comment.