From dbd1acba0792976634d990b853dd356d2638dc74 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Fri, 18 May 2012 10:33:52 -0700 Subject: [PATCH] Fix output references in tools/deploy_api.sh Change-Id: I8d97e3055a01667b658ac8cae9994d6d75531469 --- tools/deploy_api.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/deploy_api.sh b/tools/deploy_api.sh index caa286b64b..e5909e541e 100755 --- a/tools/deploy_api.sh +++ b/tools/deploy_api.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + SRC=$(ls gerrit-plugin-api/target/gerrit-plugin-api-*-sources.jar) VER=${SRC#gerrit-plugin-api/target/gerrit-plugin-api-} VER=${VER%-sources.jar} @@ -22,7 +24,7 @@ mvn deploy:deploy-file \ -DartifactId=gerrit-extension-api \ -Dversion=$VER \ -Dpackaging=jar \ - -Dfile=$module/target/gerrit-extension-api-$VER-all.jar \ + -Dfile=gerrit-extension-api/target/gerrit-extension-api-$VER-all.jar \ -DrepositoryId=gerrit-api-repository \ -Durl=$URL @@ -31,7 +33,7 @@ mvn deploy:deploy-file \ -DartifactId=gerrit-extension-api \ -Dversion=$VER \ -Dpackaging=java-source \ - -Dfile=$module/target/gerrit-extension-api-$VER-all-sources.jar \ + -Dfile=gerrit-extension-api/target/gerrit-extension-api-$VER-all-sources.jar \ -Djava-source=false \ -DrepositoryId=gerrit-api-repository \ -Durl=$URL @@ -43,7 +45,7 @@ mvn deploy:deploy-file \ -DartifactId=gerrit-plugin-api \ -Dversion=$VER \ -Dpackaging=jar \ - -Dfile=$module/target/gerrit-plugin-api-$VER.jar \ + -Dfile=gerrit-plugin-api/target/gerrit-plugin-api-$VER.jar \ -DrepositoryId=gerrit-api-repository \ -Durl=$URL @@ -52,7 +54,7 @@ mvn deploy:deploy-file \ -DartifactId=gerrit-plugin-api \ -Dversion=$VER \ -Dpackaging=java-source \ - -Dfile=$module/target/gerrit-plugin-api-$VER-sources.jar \ + -Dfile=gerrit-plugin-api/target/gerrit-plugin-api-$VER-sources.jar \ -Djava-source=false \ -DrepositoryId=gerrit-api-repository \ -Durl=$URL