summaryrefslogtreecommitdiffstats
path: root/maven
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2009-02-20 13:51:35 +0000
committerYegor Kozlov <yegor@apache.org>2009-02-20 13:51:35 +0000
commit7ee091d4d0e0d4058bc14112e679dd3c260618d9 (patch)
tree95f4a9f77bcf6e67f1efe4991588a56ae7c48676 /maven
parentd5e64851f69b76853abfa69d9d69a0904e603991 (diff)
downloadpoi-7ee091d4d0e0d4058bc14112e679dd3c260618d9.tar.gz
poi-7ee091d4d0e0d4058bc14112e679dd3c260618d9.zip
added a script to upload digital signatures in the Maven repo to the 'dist' ant task
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@746240 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'maven')
-rwxr-xr-xmaven/mvn-sig.sh61
1 files changed, 43 insertions, 18 deletions
diff --git a/maven/mvn-sig.sh b/maven/mvn-sig.sh
index 0b3914197b..8a5ae4d64d 100755
--- a/maven/mvn-sig.sh
+++ b/maven/mvn-sig.sh
@@ -1,30 +1,55 @@
#! /bin/sh
-# copy signatures
+#
+# 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.
+#
+# Shell script to copy digital signatures to the Maven repository.
+# Unfortunately "mvn deploy:deploy-file" does not upload *.asc files and we have to upload them after ./mvn-deploy.sh is done.
+#
+# Usage:
+# 1. Upload release artifacts using ./mvn-deploy.sh
+# 2. login to people.apache.org and cd to the directory with the release files
+# 3. ./mvn-sig.sh
+# @author Yegor Kozlov
REPO=/www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/poi
-version=@VERSION@
+VERSION=@VERSION@
+DSTAMP=@DSTAMP@
artifactId=poi
-cp $artifactId-@VERSION@-@DSTAMP@.jar.asc $REPO/$artifactId/$version/$artifactId-$version.jar.asc
-cp $artifactId-@VERSION@-@DSTAMP@.pom.asc $REPO/$artifactId/$version/$artifactId-$version.pom.asc
-gpg --verify $REPO/$artifactId/$version/$artifactId-$version.jar.asc $REPO/$artifactId/$version/$artifactId-$version.jar
-gpg --verify $REPO/$artifactId/$version/$artifactId-$version.pom.asc $REPO/$artifactId/$version/$artifactId-$version.pom
+cp $artifactId-$VERSION-$DSTAMP.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc
+cp $artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc
+gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar
+gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom
artifactId=poi-contrib
-cp $artifactId-@VERSION@-@DSTAMP@.jar.asc $REPO/$artifactId/$version/$artifactId-$version.jar.asc
-cp $artifactId-@VERSION@-@DSTAMP@.pom.asc $REPO/$artifactId/$version/$artifactId-$version.pom.asc
-gpg --verify $REPO/$artifactId/$version/$artifactId-$version.jar.asc $REPO/$artifactId/$version/$artifactId-$version.jar
-gpg --verify $REPO/$artifactId/$version/$artifactId-$version.pom.asc $REPO/$artifactId/$version/$artifactId-$version.pom
+cp $artifactId-$VERSION-$DSTAMP.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc
+cp $artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc
+gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar
+gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom
artifactId=poi-scratchpad
-cp $artifactId-@VERSION@-@DSTAMP@.jar.asc $REPO/$artifactId/$version/$artifactId-$version.jar.asc
-cp $artifactId-@VERSION@-@DSTAMP@.pom.asc $REPO/$artifactId/$version/$artifactId-$version.pom.asc
-gpg --verify $REPO/$artifactId/$version/$artifactId-$version.jar.asc $REPO/$artifactId/$version/$artifactId-$version.jar
-gpg --verify $REPO/$artifactId/$version/$artifactId-$version.pom.asc $REPO/$artifactId/$version/$artifactId-$version.pom
+cp $artifactId-$VERSION-$DSTAMP.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc
+cp $artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc
+gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar
+gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom
artifactId=poi-ooxml
-cp $artifactId-@VERSION@-@DSTAMP@.jar.asc $REPO/$artifactId/$version/$artifactId-$version.jar.asc
-cp $artifactId-@VERSION@-@DSTAMP@.pom.asc $REPO/$artifactId/$version/$artifactId-$version.pom.asc
-gpg --verify $REPO/$artifactId/$version/$artifactId-$version.jar.asc $REPO/$artifactId/$version/$artifactId-$version.jar
-gpg --verify $REPO/$artifactId/$version/$artifactId-$version.pom.asc $REPO/$artifactId/$version/$artifactId-$version.pom
+cp $artifactId-$VERSION-$DSTAMP.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc
+cp $artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc
+gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.jar
+gpg --verify $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom.asc $REPO/$artifactId/$VERSION/$artifactId-$VERSION.pom
+