You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2015/10/05 14:14:46 UTC
svn commit: r1706819 - /sling/trunk/tooling/ide/sign.sh
Author: rombert
Date: Mon Oct 5 12:14:46 2015
New Revision: 1706819
URL: http://svn.apache.org/viewvc?rev=1706819&view=rev
Log:
SLING-4467 - Create a script for verifying staged IDE tooling releases
Add tooling/release/sign.sh to allow signing of staged artifacts
Added:
sling/trunk/tooling/ide/sign.sh (with props)
Added: sling/trunk/tooling/ide/sign.sh
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/sign.sh?rev=1706819&view=auto
==============================================================================
--- sling/trunk/tooling/ide/sign.sh (added)
+++ sling/trunk/tooling/ide/sign.sh Mon Oct 5 12:14:46 2015
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+DIR=$1
+
+if [ $# -ne 1 ]; then
+ echo "Usage: $0 directory";
+ exit 1;
+fi
+
+if [ ! -d $DIR ] ; then
+ echo "$DIR is not a directory";
+ exit 2;
+fi
+
+pushd $DIR
+
+for jarfile in `find . -name \*.jar -o -name \*.zip -exec basename {} \;` ; do
+ if [ ! -f $jarfile.md5 ] ; then
+ md5sum $jarfile | awk '{print $1}' > $jarfile.md5
+ fi
+ if [ ! -f $jarfile.sha1 ] ; then
+ sha1sum $jarfile | awk '{print $1}' > $jarfile.sha1
+ fi
+ if [ ! -f $jarfile.asc ] ; then
+ gpg --detach-sign -a $jarfile
+ fi
+done
+
+popd
Propchange: sling/trunk/tooling/ide/sign.sh
------------------------------------------------------------------------------
svn:executable = *