Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
definite committed Jun 9, 2015
1 parent b464de7 commit efa7dc3
Showing 1 changed file with 27 additions and 31 deletions.
58 changes: 27 additions & 31 deletions zanata-nexus-staging
Expand Up @@ -2,49 +2,46 @@

function print_usage(){
cat <<-END
== SYNOPSIS
zanata-nexus-staging [options] <PROJECT>
zanata-nexus-staging-tennera [options]
zanata-nexus-staging-openprops [options]
zanata-nexus-staging-parent [options]
zanata-nexus-staging-api [options]
zanata-nexus-staging-common [options]
SYNOPSIS
zanata-nexus-staging [options] <PROJECT>
zanata-nexus-staging-tennera [options]
zanata-nexus-staging-openprops [options]
zanata-nexus-staging-parent [options]
zanata-nexus-staging-api [options]
zanata-nexus-staging-common [options]
OPTIONS
-r: Skip release plugin
== OPTIONS
-r: Skip release plugin
Environment Variables
BRANCH
Branch is automatically determined by PROJECT.
Specify Environment BRANCH to override.
== Environment Variables
WORK_ROOT
The base directory for repository checkout
As maven release plugin generally require a clean git working tree
This script will clean it for you.
Thus it is better not use normal working directory.
=== BRANCH
Branch is automatically determined by PROJECT.
Specify Environment BRANCH to override.
REPO_LOCAL_DIR (Optional)
The directory for maven repo
This should NOT be your normal work maven repo
=== WORK_ROOT
The base directory for repository checkout
As maven release plugin generally require a clean git working tree
This script will clean it for you.
Thus it is better not use normal working directory.
=== REPO_LOCAL_DIR (Optional)
The directory for maven repo
This should NOT be your normal work maven repo
=== EXIT_STATUS
EXIT_INVALID_OPTIONS=3
EXIT_FAIL_TO_CLONE=4
EXIT_RELEASE_GOAL_FAIL=5
END
EXIT_STATUS
EXIT_INVALID_OPTIONS=3
EXIT_FAIL_TO_CLONE=4
EXIT_RELEASE_GOAL_FAIL=5
END
}

: ${WORK_ROOT:=/tmp/zanata}
: ${REPO_LOCAL_DIR:=/tmp/maven-central-release-repo}


EXIT_INVALID_OPTIONS=3
EXIT_FAIL_TO_CLONE=4
EXIT_RELEASE_GOAL_FAIL=5


while getopts "r" opt;do
case $opt in
r )
Expand Down Expand Up @@ -184,4 +181,3 @@ case $PROJECT in
;;
esac


0 comments on commit efa7dc3

Please sign in to comment.