You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by sk...@apache.org on 2020/02/21 17:57:53 UTC
svn commit: r38207 - /dev/netbeans/testrelease.sh
Author: skygo
Date: Fri Feb 21 17:57:53 2020
New Revision: 38207
Log:
verifying tool
Added:
dev/netbeans/testrelease.sh (with props)
Added: dev/netbeans/testrelease.sh
==============================================================================
--- dev/netbeans/testrelease.sh (added)
+++ dev/netbeans/testrelease.sh Fri Feb 21 17:57:53 2020
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+# 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.
+
+set -e
+echo "Files with no sha512 or asc"
+
+for line in $(find . -not -name "*.sha512" -not -name "*.asc" -type f)
+do
+ folder=`dirname "$line"`
+ filename=`basename "$line"`
+ cd "${folder}"
+ if [ ! -e "${filename}.sha512" ]
+ then
+ echo -e "\e[0;31mSHA512 missing for\e[0m ${folder}/${filename}"
+ fi
+ if [ ! -e "${filename}.asc" ]
+ then
+ echo -e "\e[0;31mASC missing for\e[0m ${folder}/${filename}"
+ fi
+# back to initial folder
+ cd - > /dev/null
+done;
+
+echo "Press a key"
+read a
+echo "Scanning for checksum"
+for z in $(find . -name '*.sha512'); do cd $(dirname $z); sha512sum ./$(basename $z) --check --quiet; cd - >/dev/null; done
+
+echo "Press a key"
+read a
+echo "Scanning for signature"
+find . -name '*.asc' -exec gpg --verify {} \;
Propchange: dev/netbeans/testrelease.sh
------------------------------------------------------------------------------
svn:executable = *
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists