Author: lewismc
Date: Tue Apr 21 16:48:26 2015
New Revision: 1675155

URL: http://svn.apache.org/r1675155
Log:
Update tool script to accomodate reuirement for edu.ucar.jj2000 and 
edu.ucar.udunits dependencies

Modified:
    tika/tools/tika_ucar_sonatype.sh

Modified: tika/tools/tika_ucar_sonatype.sh
URL: 
http://svn.apache.org/viewvc/tika/tools/tika_ucar_sonatype.sh?rev=1675155&r1=1675154&r2=1675155&view=diff
==============================================================================
--- tika/tools/tika_ucar_sonatype.sh (original)
+++ tika/tools/tika_ucar_sonatype.sh Tue Apr 21 16:48:26 2015
@@ -29,15 +29,27 @@
 # - https://wiki.apache.org/tika/ThirdPartySonaType#Staging
 
 DEPENDENCY_VERSION="$1"
-ARTIFACT_DIRECTORY="$2"
+JJ2000_VERSION="$2"
+UDUNITS_VERSION="$3"
+ARTIFACT_DIRECTORY="$4"
 
 if [ "$DEPENDENCY_VERSION" = "" ]; then
-       echo "Missing dependency_version : tika_ucar_sonatype.sh 
<dependency_version> <artifact_directory>"
+       echo "Missing dependency_version : tika_ucar_sonatype.sh 
<dependency_version> <jss2000_version> <udunits_version> <artifact_directory>"
        exit -1;
 fi
 
+if [ "$JJ2000_VERSION" = "" ]; then
+echo "Missing dependency_version : tika_ucar_sonatype.sh <dependency_version> 
<jss2000_version> <udunits_version> <artifact_directory>"
+exit -1;
+fi
+
+if [ "$UDUNITS_VERSION" = "" ]; then
+echo "Missing dependency_version : tika_ucar_sonatype.sh <dependency_version> 
<jss2000_version> <udunits_version> <artifact_directory>"
+exit -1;
+fi
+
 if [ "$ARTIFACT_DIRECTORY" = "" ]; then
-       echo "Missing dependency_version : tika_ucar_sonatype.sh 
<dependency_version> <artifact_directory>"
+       echo "Missing dependency_version : tika_ucar_sonatype.sh 
<dependency_version> <jss2000_version> <udunits_version> <artifact_directory>"
        exit -1;
 fi
 
@@ -57,10 +69,37 @@ do
     wget -P "$ARTIFACT_DIRECTORY" 
"${UCAR}$item/$DEPENDENCY_VERSION/$item-$DEPENDENCY_VERSION.pom"
     mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION-javadoc.jar 
-Dclassifier=javadoc
     mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION-sources.jar 
-Dclassifier=sources
-mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION-tests.jar
-mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION.jar
-mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION.pom
+    mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION-tests.jar
+    mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION.jar
+    mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$item-$DEPENDENCY_VERSION.pom
 done
+
+# The jj2000 dependencies we wish to grab and sign before staging
+jj2000_array=(jj2000)
+for jitem in ${jj2000_array[*]}
+do
+    printf "   %s\n" $jitem
+    wget -P "$ARTIFACT_DIRECTORY" 
"${UCAR}$jitem/$JJ2000_VERSION/$jitem-$JJ2000_VERSION.pom"
+    mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$jitem-$JJ2000_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$jitem-$JJ2000_VERSION-javadoc.jar 
-Dclassifier=javadoc
+    mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$jitem-$JJ2000_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$jitem-$JJ2000_VERSION-sources.jar 
-Dclassifier=sources
+    mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$jitem-$JJ2000_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$jitem-$JJ2000_VERSION-tests.jar
+    mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$jitem-$JJ2000_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$jitem-$JJ2000_VERSION.jar
+    mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$jitem-$JJ2000_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$jitem-$JJ2000_VERSION.pom
+done
+
+# The udunits dependencies we wish to grab and sign before staging
+udunits_array=(udunits)
+for uitem in ${udunits_array[*]}
+do
+    printf "   %s\n" $uitem
+    wget -P "$ARTIFACT_DIRECTORY" 
"${UCAR}$uitem/$UDUNITS_VERSION/$uitem-$UDUNITS_VERSION.pom"
+    mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$uitem-$UDUNITS_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$uitem-$UDUNITS_VERSION-javadoc.jar 
-Dclassifier=javadoc
+    mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$uitem-$UDUNITS_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$uitem-$UDUNITS_VERSION-sources.jar 
-Dclassifier=sources
+    mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$uitem-$UDUNITS_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$uitem-$UDUNITS_VERSION-tests.jar
+    mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$uitem-$UDUNITS_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$uitem-$UDUNITS_VERSION.jar
+    mvn gpg:sign-and-deploy-file 
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ 
-DrepositoryId=edu.ucar 
-DpomFile="$ARTIFACT_DIRECTORY"$uitem-$UDUNITS_VERSION.pom 
-Dfile="$ARTIFACT_DIRECTORY"$uitem-$UDUNITS_VERSION.pom
+done
+
 echo "FINISHED: Fetching and signing UCAR artifacts, please progress to 
https://wiki.apache.org/tika/ThirdPartySonaType#Staging";
 
 


Reply via email to