You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pa...@apache.org on 2011/09/05 15:13:38 UTC
svn commit: r1165269 - in
/directory/studio/trunk/application/application-release: pom.xml
src/main/resources/sign.sh
Author: pamarcelot
Date: Mon Sep 5 13:13:38 2011
New Revision: 1165269
URL: http://svn.apache.org/viewvc?rev=1165269&view=rev
Log:
Adapted the 'sign.sh' script for automated signature based on properties in the 'application-release' sub-module.
Modified:
directory/studio/trunk/application/application-release/pom.xml
directory/studio/trunk/application/application-release/src/main/resources/sign.sh
Modified: directory/studio/trunk/application/application-release/pom.xml
URL: http://svn.apache.org/viewvc/directory/studio/trunk/application/application-release/pom.xml?rev=1165269&r1=1165268&r2=1165269&view=diff
==============================================================================
--- directory/studio/trunk/application/application-release/pom.xml (original)
+++ directory/studio/trunk/application/application-release/pom.xml Mon Sep 5 13:13:38 2011
@@ -131,7 +131,8 @@
</copy>
<copy file="src/main/resources/sign.sh" todir="${release-dir}">
<filterset>
- <filter token="password" value="${gpg.passphrase}" />
+ <filter token="gpg.keyname" value="${gpg.keyname}" />
+ <filter token="gpg.passphrase" value="${gpg.passphrase}" />
</filterset>
</copy>
</tasks>
Modified: directory/studio/trunk/application/application-release/src/main/resources/sign.sh
URL: http://svn.apache.org/viewvc/directory/studio/trunk/application/application-release/src/main/resources/sign.sh?rev=1165269&r1=1165268&r2=1165269&view=diff
==============================================================================
--- directory/studio/trunk/application/application-release/src/main/resources/sign.sh (original)
+++ directory/studio/trunk/application/application-release/src/main/resources/sign.sh Mon Sep 5 13:13:38 2011
@@ -1,21 +1,31 @@
#!/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.
-echo "PGP Key ID: "
-read DEFAULT_KEY
+DEFAULT_KEY=@gpg.keyname@
+PASSWORD=@gpg.passphrase@
-echo "PGP Key Password: "
-stty -echo
-read PASSWORD
-stty echo
-echo ""
-
-for FILE in $(find . -maxdepth 1 -not '(' -name "sign.sh" -or -name ".*" -or -name "*.md5" -or -name "*.sha1" -or -name "*.asc" ')' -and -type f) ; do
+for FILE in $(find . -not '(' -name "sign.sh" -or -name ".*" -or -name "*.md5" -or -name "*.sha1" -or -name "*.asc" ')' -and -type f) ; do
if [ -f "$FILE.asc" ]; then
echo "Skipping: $FILE"
continue
fi
- echo -n "Signing: $FILE ... "
+ echo "Signing: $FILE ... "
# MD5
if [ ! -f "$FILE.md5" ];