diff options
author | Yegor Kozlov <yegor@apache.org> | 2009-11-24 09:10:49 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2009-11-24 09:10:49 +0000 |
commit | 03443502f5a8b8df7bcdc41cfc7480199c3eb4f2 (patch) | |
tree | 71e6d79de52174ddb4b01bd326c09bedf201c636 /maven | |
parent | b7aa4bea9a9c5f30a611ccfcb40a999b649ed9ff (diff) | |
download | poi-03443502f5a8b8df7bcdc41cfc7480199c3eb4f2.tar.gz poi-03443502f5a8b8df7bcdc41cfc7480199c3eb4f2.zip |
more cleanup of build.xml, improved release procedure, added a script to create .md5 and .asc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@883629 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'maven')
-rwxr-xr-x | maven/multisign.sh | 31 | ||||
-rwxr-xr-x | maven/mvn-deploy.sh | 54 |
2 files changed, 49 insertions, 36 deletions
diff --git a/maven/multisign.sh b/maven/multisign.sh new file mode 100755 index 0000000000..02403628b4 --- /dev/null +++ b/maven/multisign.sh @@ -0,0 +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. +# +# create md5 checksums and gpg signatures + +stty -echo +echo "enter your GPG passphrase" +read passphrase +stty echo + +for i in *; do + echo Signing $i + echo $passphrase | gpg --passphrase-fd 0 --output $i.asc --detach-sig --armor $i + gpg --verify $i.asc $i + echo Hashing $i + openssl md5 < $i > $i.md5 +done diff --git a/maven/mvn-deploy.sh b/maven/mvn-deploy.sh index ae59e4bff7..0670a4c1b9 100755 --- a/maven/mvn-deploy.sh +++ b/maven/mvn-deploy.sh @@ -43,39 +43,21 @@ M2_REPOSITORY=scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository M2_SCP=people.apache.org:/www/people.apache.org/repo/m2-ibiblio-rsync-repository -mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases -P apache-releases \ - -Durl=$M2_REPOSITORY \ - -Dfile=poi-@VERSION@-@DSTAMP@.jar -DpomFile=poi-@VERSION@.pom -scp poi-@VERSION@.pom.asc $M2_SCP/org/apache/poi/poi/@VERSION@/ -scp poi-@VERSION@-sources.* $M2_SCP/org/apache/poi/poi/@VERSION@/ - -mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases -P apache-releases \ - -Durl=$M2_REPOSITORY \ - -Dfile=poi-scratchpad-@VERSION@-@DSTAMP@.jar -DpomFile=poi-scratchpad-@VERSION@.pom -scp poi-scratchpad-@VERSION@.pom.asc $M2_SCP/org/apache/poi/poi-scratchpad/@VERSION@/ -scp poi-scratchpad-@VERSION@-sources.* $M2_SCP/org/apache/poi/poi-scratchpad/@VERSION@/ - -mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases -P apache-releases \ - -Durl=$M2_REPOSITORY \ - -Dfile=poi-contrib-@VERSION@-@DSTAMP@.jar -DpomFile=poi-contrib-@VERSION@.pom -scp poi-contrib-@VERSION@.pom.asc $M2_SCP/org/apache/poi/poi-contrib/@VERSION@/ -scp poi-contrib-@VERSION@-sources.* $M2_SCP/org/apache/poi/poi-contrib/@VERSION@/ - -mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases -P apache-releases \ - -Durl=$M2_REPOSITORY \ - -Dfile=poi-ooxml-@VERSION@-@DSTAMP@.jar -DpomFile=poi-ooxml-@VERSION@.pom -scp poi-ooxml-@VERSION@.pom.asc $M2_SCP/org/apache/poi/poi-ooxml/@VERSION@/ -scp poi-ooxml-@VERSION@-sources.* $M2_SCP/org/apache/poi/poi-ooxml/@VERSION@/ - -mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases -P apache-releases \ - -Durl=$M2_REPOSITORY \ - -Dfile=poi-examples-@VERSION@-@DSTAMP@.jar -DpomFile=poi-examples-@VERSION@.pom -scp poi-examples-@VERSION@.pom.asc $M2_SCP/org/apache/poi/poi-examples/@VERSION@/ -scp poi-examples-@VERSION@-sources.* $M2_SCP/org/apache/poi/poi-examples/@VERSION@/ - -mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases -P apache-releases \ - -Durl=$M2_REPOSITORY \ - -Dfile=poi-ooxml-schemas-@VERSION@-@DSTAMP@.jar -DpomFile=poi-ooxml-schemas-@VERSION@.pom -scp poi-ooxml-schemas-@VERSION@.pom.asc $M2_SCP/org/apache/poi/poi-ooxml-schemas/@VERSION@/ - - +VERSION=@VERSION@ +DSTAMP=@DSTAMP@ + +for artifactId in poi poi-scratchpad poi-contrib poi-ooxml poi-examples poi-ooxml-schemas +do + mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases -P apache-releases \ + -Durl=$M2_REPOSITORY \ + -Dfile=$artifactId-$VERSION-$DSTAMP.jar -DpomFile=$artifactId-$VERSION.pom + #The maven sign-and-deploy-file command does NOT sign POM files, so we have to upload the POM's .asc manually + scp $artifactId-$VERSION.pom.asc $M2_SCP/org/apache/poi/$artifactId/$VERSION/ + + if [ -r $artifactId-$VERSION-sources.jar ]; then + mvn deploy:deploy-file -DrepositoryId=apache-releases -P apache-releases \ + -Durl=$M2_REPOSITORY -DgeneratePom=false -Dpackaging=java-source \ + -Dfile=$artifactId-$VERSION-sources.jar -DpomFile=$artifactId-$VERSION.pom + scp $artifactId-$VERSION-sources.jar.asc $M2_SCP/org/apache/poi/$artifactId/$VERSION/ + fi +done |