oltu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1359076 - in /incubator/amber/committers/scripts: ./ grab-binaries.sh
Date Mon, 09 Jul 2012 11:38:59 GMT
Author: simonetripodi
Date: Mon Jul  9 11:38:59 2012
New Revision: 1359076

URL: http://svn.apache.org/viewvc?rev=1359076&view=rev
Log:
first checkin of a script to grab binaries from Nexus and copy them in the staging distribution
area

Added:
    incubator/amber/committers/scripts/
    incubator/amber/committers/scripts/grab-binaries.sh   (with props)

Added: incubator/amber/committers/scripts/grab-binaries.sh
URL: http://svn.apache.org/viewvc/incubator/amber/committers/scripts/grab-binaries.sh?rev=1359076&view=auto
==============================================================================
--- incubator/amber/committers/scripts/grab-binaries.sh (added)
+++ incubator/amber/committers/scripts/grab-binaries.sh Mon Jul  9 11:38:59 2012
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+export REPO_BASE=https://repository.apache.org/content/repositories/orgapacheamber
+
+export REPO_ID=${1}
+export VERSION=${2}
+
+function grab
+{
+    ARTIFACT_ID=${1}
+    PACKAGING=${2}
+
+    wget --no-check-certificate ${REPO_BASE}-${REPO_ID}/org/apache/amber/${ARTIFACT_ID}/${VERSION}/${ARTIFACT_ID}-${VERSION}.${PACKAGING}
+}
+
+function grabAll
+{
+    ARTIFACT_ID=${1}
+
+    for type in zip tar.gz; do
+        grab ${ARTIFACT_ID} ${type}
+
+        for ext in asc md5 sha1; do
+            grab ${ARTIFACT_ID} ${type}.${ext}
+        done
+    done
+}
+
+cd sources
+grabAll amber-sources
+
+cd ../binaries
+grabAll amber-oauth2-authzserver
+grabAll amber-oauth2-client
+grabAll amber-oauth2-client-demo
+grabAll amber-oauth2-dynamicreg-client
+grabAll amber-oauth2-dynamicreg-server
+grabAll amber-oauth2-httpclient4
+grabAll amber-oauth2-resourceserver
+grabAll amber-oauth2-resourceserver-filter

Propchange: incubator/amber/committers/scripts/grab-binaries.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/amber/committers/scripts/grab-binaries.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/amber/committers/scripts/grab-binaries.sh
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/amber/committers/scripts/grab-binaries.sh
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message