incubator-any23-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1358098 - /incubator/any23/committers/scripts/grab-binaries.sh
Date Fri, 06 Jul 2012 09:54:37 GMT
Author: simonetripodi
Date: Fri Jul  6 09:54:36 2012
New Revision: 1358098

URL: http://svn.apache.org/viewvc?rev=1358098&view=rev
Log:
fix handle empty/not set classifiers

Modified:
    incubator/any23/committers/scripts/grab-binaries.sh

Modified: incubator/any23/committers/scripts/grab-binaries.sh
URL: http://svn.apache.org/viewvc/incubator/any23/committers/scripts/grab-binaries.sh?rev=1358098&r1=1358097&r2=1358098&view=diff
==============================================================================
--- incubator/any23/committers/scripts/grab-binaries.sh (original)
+++ incubator/any23/committers/scripts/grab-binaries.sh Fri Jul  6 09:54:36 2012
@@ -28,13 +28,12 @@ function grab
     GROUP_ID=${1}
     ARTIFACT_ID=${2}
     VERSION=${3}
-    CLASSIFIER=${4}
-    PACKAGING=${5}
+    PACKAGING=${4}
 
-    if [ -z "${CLASSIFIER}" ]; then
-        CLASSIFIED_VERSION=${VERSION}-${CLASSIFIER}
-    else
+    if [ -z "${5}" ]; then
         CLASSIFIED_VERSION=${VERSION}
+    else
+        CLASSIFIED_VERSION=${VERSION}-${5}
     fi
 
     wget --no-check-certificate ${REPO_BASE}-${REPO_ID}/$(echo $GROUP_ID | sed 's/\./\//g')/${ARTIFACT_ID}/${VERSION}/${ARTIFACT_ID}-${CLASSIFIED_VERSION}.${PACKAGING}
@@ -48,10 +47,10 @@ function grabAll
     CLASSIFIER=${4}
 
     for type in zip tar.gz; do
-        grab ${GROUP_ID} ${ARTIFACT_ID} ${VERSION} ${CLASSIFIER} ${type}
+        grab ${GROUP_ID} ${ARTIFACT_ID} ${VERSION} ${type} ${CLASSIFIER}
 
         for ext in asc md5 sha1; do
-            grab ${GROUP_ID} ${ARTIFACT_ID} ${VERSION} ${CLASSIFIER} ${type}.${ext}
+            grab ${GROUP_ID} ${ARTIFACT_ID} ${VERSION} ${type}.${ext} ${CLASSIFIER}
         done
     done
 }



Mime
View raw message