This is an automated email from the ASF dual-hosted git repository.

mattmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/drat.git


The following commit(s) were added to refs/heads/master by this push:
     new 808d85b  Add gen apache repo URL script.
808d85b is described below

commit 808d85bd7b35bb2aeffdb6dc58f49182acffa236
Author: Chris Mattmann <[email protected]>
AuthorDate: Mon Aug 20 05:19:05 2018 +0000

    Add gen apache repo URL script.
---
 .../src/main/resources/bin/gen-apache-repo-urls.sh | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/distribution/src/main/resources/bin/gen-apache-repo-urls.sh 
b/distribution/src/main/resources/bin/gen-apache-repo-urls.sh
new file mode 100755
index 0000000..a0665e9
--- /dev/null
+++ b/distribution/src/main/resources/bin/gen-apache-repo-urls.sh
@@ -0,0 +1,30 @@
+#!/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.
+
+shopt -s expand_aliases
+
+if [ ! -f $DRAT_HOME/lib/tika-app-1.18.jar ]; then
+    pushd $DRAT_HOME/lib
+    curl -O 
http://repo1.maven.org/maven2/org/apache/tika/tika-app/1.18/tika-app-1.18.jar
+    popd
+fi
+
+alias tika="java -jar $DRAT_HOME/lib/tika-app-1.18.jar"
+REPOS=`tika -t "https://gitbox.apache.org/repos/asf"; | grep \.git | cut -d\? 
-f2 | cut -d\; -f1 | cut -d\= -f2 | cut -d\" -f1 | cut -d"." -f1 | sort | uniq`
+for REPO in $REPOS; do
+    echo $REPO.git | sed -e 's/^[[:space:]]*//' ;
+done
+

Reply via email to