You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by io...@apache.org on 2015/03/09 23:39:25 UTC
svn commit: r1665374 - in /manifoldcf/release-scripts: check_signatures.sh
check_solr_signatures.sh release-solr-5.x.sh
Author: iorixxx
Date: Mon Mar 9 22:39:24 2015
New Revision: 1665374
URL: http://svn.apache.org/r1665374
Log:
fix solr5x versus solr-5.x issue; add strip-trailing-cr option to diff; add signature checker for solr releases
Added:
manifoldcf/release-scripts/check_solr_signatures.sh (with props)
Modified:
manifoldcf/release-scripts/check_signatures.sh
manifoldcf/release-scripts/release-solr-5.x.sh
Modified: manifoldcf/release-scripts/check_signatures.sh
URL: http://svn.apache.org/viewvc/manifoldcf/release-scripts/check_signatures.sh?rev=1665374&r1=1665373&r2=1665374&view=diff
==============================================================================
--- manifoldcf/release-scripts/check_signatures.sh (original)
+++ manifoldcf/release-scripts/check_signatures.sh Mon Mar 9 22:39:24 2015
@@ -63,13 +63,13 @@ do
if [ $SIGN == "md5" ]; then
echo "checking MD5 of $REALFILE...";
- gpg --print-md MD5 $REALFILE | diff - $SIGNFILE;
+ gpg --print-md MD5 $REALFILE | diff --strip-trailing-cr - $SIGNFILE;
continue;
fi
if [ $SIGN == "sha" ]; then
echo "checking SHA512 of $REALFILE...";
- gpg --print-md SHA512 $REALFILE | diff - $SIGNFILE;
+ gpg --print-md SHA512 $REALFILE | diff --strip-trailing-cr - $SIGNFILE;
continue;
fi
Added: manifoldcf/release-scripts/check_solr_signatures.sh
URL: http://svn.apache.org/viewvc/manifoldcf/release-scripts/check_solr_signatures.sh?rev=1665374&view=auto
==============================================================================
--- manifoldcf/release-scripts/check_solr_signatures.sh (added)
+++ manifoldcf/release-scripts/check_solr_signatures.sh Mon Mar 9 22:39:24 2015
@@ -0,0 +1,80 @@
+#!/bin/sh
+#
+# Performs MD5, SHA512 (hashes) and GPG (signature) verification on artifacts.
+#
+# Requires GnuPG and diff installed on your computer.
+#
+# 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.
+#
+
+if [ -z "$1" ];
+then
+ echo "Need a solr version, e.g. '5.x'"
+ echo "Usage check_solr_signatures.sh <SolrVersion> <ReleaseVersion>"
+ echo "example: check_solr_signatures.sh 5.x 2.1"
+ exit 1
+fi
+
+if [ -z "$2" ];
+then
+ echo "Need a solr version, e.g. '5.x'"
+ echo "Usage check_solr_signatures.sh <SolrVersion> <ReleaseVersion>"
+ echo "example: check_solr_signatures.sh 5.x 2.1"
+ exit 1
+fi
+
+#import KEYS
+echo "importing apache-manifoldcf-solr-$1-plugin-$2.KEYS file..."
+gpg --import apache-manifoldcf-solr-$1-plugin-$2.KEYS
+
+for TYPE in bin src
+
+do
+ for EXTENSION in zip tar.gz;
+
+ do
+
+ REALFILE="apache-manifoldcf-solr-$1-plugin-$2-$TYPE.$EXTENSION";
+ echo "processing file $REALFILE";
+
+ for SIGN in asc md5 sha;
+
+ do
+ SIGNFILE="$REALFILE.$SIGN";
+
+ if [ $SIGN == "md5" ]; then
+ echo "checking MD5 of $REALFILE...";
+ gpg --print-md MD5 $REALFILE | diff --strip-trailing-cr - $SIGNFILE;
+ continue;
+ fi
+
+ if [ $SIGN == "sha" ]; then
+ echo "checking SHA512 of $REALFILE...";
+ gpg --print-md SHA512 $REALFILE | diff --strip-trailing-cr - $SIGNFILE;
+ continue;
+ fi
+
+ if [ $SIGN == "asc" ]; then
+ echo "checking GPG signature of $REALFILE...";
+ gpg --verify $SIGNFILE;
+ continue;
+ fi
+
+ done
+
+ done
+
+done
Propchange: manifoldcf/release-scripts/check_solr_signatures.sh
------------------------------------------------------------------------------
svn:eol-style = LF
Propchange: manifoldcf/release-scripts/check_solr_signatures.sh
------------------------------------------------------------------------------
svn:executable = *
Modified: manifoldcf/release-scripts/release-solr-5.x.sh
URL: http://svn.apache.org/viewvc/manifoldcf/release-scripts/release-solr-5.x.sh?rev=1665374&r1=1665373&r2=1665374&view=diff
==============================================================================
--- manifoldcf/release-scripts/release-solr-5.x.sh (original)
+++ manifoldcf/release-scripts/release-solr-5.x.sh Mon Mar 9 22:39:24 2015
@@ -36,29 +36,29 @@ then
exit 1
fi
-rm -r apache-manifoldcf-solr5x-plugin-*
+rm -r apache-manifoldcf-solr-5.x-plugin-*
mvn clean package assembly:assembly
-cp target/apache-manifoldcf-solr5x-plugin-$1-src* .
-cp target/apache-manifoldcf-solr5x-plugin-$1-bin* .
+cp target/apache-manifoldcf-solr-5.x-plugin-$1-src* .
+cp target/apache-manifoldcf-solr-5.x-plugin-$1-bin* .
-gpg --armor --output apache-manifoldcf-solr5x-plugin-$1-src.zip.asc --detach-sig apache-manifoldcf-solr5x-plugin-$1-src.zip
-gpg --armor --output apache-manifoldcf-solr5x-plugin-$1-src.tar.gz.asc --detach-sig apache-manifoldcf-solr5x-plugin-$1-src.tar.gz
-gpg --armor --output apache-manifoldcf-solr5x-plugin-$1-bin.zip.asc --detach-sig apache-manifoldcf-solr5x-plugin-$1-bin.zip
-gpg --armor --output apache-manifoldcf-solr5x-plugin-$1-bin.tar.gz.asc --detach-sig apache-manifoldcf-solr5x-plugin-$1-bin.tar.gz
-
-gpg --print-md MD5 apache-manifoldcf-solr5x-plugin-$1-src.zip > apache-manifoldcf-solr5x-plugin-$1-src.zip.md5
-gpg --print-md MD5 apache-manifoldcf-solr5x-plugin-$1-src.tar.gz > apache-manifoldcf-solr5x-plugin-$1-src.tar.gz.md5
-gpg --print-md MD5 apache-manifoldcf-solr5x-plugin-$1-bin.zip > apache-manifoldcf-solr5x-plugin-$1-bin.zip.md5
-gpg --print-md MD5 apache-manifoldcf-solr5x-plugin-$1-bin.tar.gz > apache-manifoldcf-solr5x-plugin-$1-bin.tar.gz.md5
-
-gpg --print-md SHA512 apache-manifoldcf-solr5x-plugin-$1-src.zip > apache-manifoldcf-solr5x-plugin-$1-src.zip.sha
-gpg --print-md SHA512 apache-manifoldcf-solr5x-plugin-$1-src.tar.gz > apache-manifoldcf-solr5x-plugin-$1-src.tar.gz.sha
-gpg --print-md SHA512 apache-manifoldcf-solr5x-plugin-$1-bin.zip > apache-manifoldcf-solr5x-plugin-$1-bin.zip.sha
-gpg --print-md SHA512 apache-manifoldcf-solr5x-plugin-$1-bin.tar.gz > apache-manifoldcf-solr5x-plugin-$1-bin.tar.gz.sha
+gpg --armor --output apache-manifoldcf-solr-5.x-plugin-$1-src.zip.asc --detach-sig apache-manifoldcf-solr-5.x-plugin-$1-src.zip
+gpg --armor --output apache-manifoldcf-solr-5.x-plugin-$1-src.tar.gz.asc --detach-sig apache-manifoldcf-solr-5.x-plugin-$1-src.tar.gz
+gpg --armor --output apache-manifoldcf-solr-5.x-plugin-$1-bin.zip.asc --detach-sig apache-manifoldcf-solr-5.x-plugin-$1-bin.zip
+gpg --armor --output apache-manifoldcf-solr-5.x-plugin-$1-bin.tar.gz.asc --detach-sig apache-manifoldcf-solr-5.x-plugin-$1-bin.tar.gz
+
+gpg --print-md MD5 apache-manifoldcf-solr-5.x-plugin-$1-src.zip > apache-manifoldcf-solr-5.x-plugin-$1-src.zip.md5
+gpg --print-md MD5 apache-manifoldcf-solr-5.x-plugin-$1-src.tar.gz > apache-manifoldcf-solr-5.x-plugin-$1-src.tar.gz.md5
+gpg --print-md MD5 apache-manifoldcf-solr-5.x-plugin-$1-bin.zip > apache-manifoldcf-solr-5.x-plugin-$1-bin.zip.md5
+gpg --print-md MD5 apache-manifoldcf-solr-5.x-plugin-$1-bin.tar.gz > apache-manifoldcf-solr-5.x-plugin-$1-bin.tar.gz.md5
+
+gpg --print-md SHA512 apache-manifoldcf-solr-5.x-plugin-$1-src.zip > apache-manifoldcf-solr-5.x-plugin-$1-src.zip.sha
+gpg --print-md SHA512 apache-manifoldcf-solr-5.x-plugin-$1-src.tar.gz > apache-manifoldcf-solr-5.x-plugin-$1-src.tar.gz.sha
+gpg --print-md SHA512 apache-manifoldcf-solr-5.x-plugin-$1-bin.zip > apache-manifoldcf-solr-5.x-plugin-$1-bin.zip.sha
+gpg --print-md SHA512 apache-manifoldcf-solr-5.x-plugin-$1-bin.tar.gz > apache-manifoldcf-solr-5.x-plugin-$1-bin.tar.gz.sha
-cp KEYS apache-manifoldcf-solr5x-plugin-$1.KEYS
-cp CHANGES.txt apache-manifoldcf-solr5x-plugin-$1.CHANGES.txt
+cp KEYS apache-manifoldcf-solr-5.x-plugin-$1.KEYS
+cp CHANGES.txt apache-manifoldcf-solr-5.x-plugin-$1.CHANGES.txt
-#ssh $2@people.apache.org "mkdir ~/public_html/apache-manifoldcf-solr5x-plugin-$1-$3"
-#scp apache-manifoldcf-solr5x-plugin-$1* $2@people.apache.org:~/public_html/apache-manifoldcf-solr5x-plugin-$1-$3
+#ssh $2@people.apache.org "mkdir ~/public_html/apache-manifoldcf-solr-5.x-plugin-$1-$3"
+#scp apache-manifoldcf-solr-5.x-plugin-$1* $2@people.apache.org:~/public_html/apache-manifoldcf-solr-5.x-plugin-$1-$3