Skip to content

Commit

Permalink
Minor tweaks to release script
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=97687059
  • Loading branch information
cpovirk authored and cgruber committed Oct 29, 2015
1 parent 364d2cb commit 78d7443
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions util/mvn-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@ key_count="$(echo ${keys} | wc -w)"
seen=""
while [[ $# > 0 ]] ; do
param="$1"
case $param in
--signing-key)
# disambiguating or overriding key
key="$2"
shift
;;
*)
seen="${seen} ${param}"
;;
esac
if [[ $param == "--signing-key" ]]; then
# disambiguating or overriding key
key="$2"
shift
else
seen="${seen} ${param}"
fi
shift
done
params=${seen}
Expand Down Expand Up @@ -53,5 +50,4 @@ elif [ ${key_count} -gt 1 ]; then
exit 1;
fi

mvn ${params} clean site:jar -P sonatype-oss-release -Dgpg.keyname=${key} deploy

mvn ${params} clean site:jar -P sonatype-oss-release ${key_param} deploy

0 comments on commit 78d7443

Please sign in to comment.