You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by fr...@apache.org on 2009/07/26 17:09:36 UTC

svn commit: r797944 - /incubator/empire-db/trunk/release.sh

Author: francisdb
Date: Sun Jul 26 15:09:36 2009
New Revision: 797944

URL: http://svn.apache.org/viewvc?rev=797944&view=rev
Log:
copy over post-maven-release release script from wicket

Added:
    incubator/empire-db/trunk/release.sh   (with props)

Added: incubator/empire-db/trunk/release.sh
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/release.sh?rev=797944&view=auto
==============================================================================
--- incubator/empire-db/trunk/release.sh (added)
+++ incubator/empire-db/trunk/release.sh Sun Jul 26 15:09:36 2009
@@ -0,0 +1,75 @@
+#!/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 "Apache Empire-db Release script"
+echo "----------------------------"
+echo "Building a release for Apache Empire-db. We will need the passphrase for"
+echo "GPG to sign the release."
+echo "This program assumes you use a jdk 1.5 explicitly configured when"
+echo "invoking the 'mvn5' Maven 2 command."
+echo ""
+
+echo "Enter your GPG passphrase (input will be hidden)"
+stty_orig=`stty -g` 
+stty -echo 
+read passphrase
+stty $stty_orig
+
+# Clear the current NOTICE.txt file
+echo "Creating notice file."
+
+NOTICE=NOTICE
+> $NOTICE 
+echo "Apache Empire-db" >> $NOTICE
+echo "Copyright 2008 The Apache Software Foundation" >> $NOTICE
+echo "" >> $NOTICE
+echo "This product includes software developed at" >> $NOTICE
+echo "The Apache Software Foundation (http://www.apache.org/)." >> $NOTICE
+echo "" >> $NOTICE
+echo "This is an aggregated NOTICE file for the Apache Empire-db projects included" >> $NOTICE
+echo "in this distribution." >> $NOTICE
+echo "" >> $NOTICE
+echo "NB: DO NOT ADD LICENSES/NOTICES/ATTRIBUTIONS TO THIS FILE, BUT IN THE" >> $NOTICE
+echo "    NOTICE FILE OF THE CORRESPONDING PROJECT. THE RELEASE PROCEDURE WILL" >> $NOTICE
+echo "    AUTOMATICALLY INCLUDE THE NOTICE IN THIS FILE." >> $NOTICE
+echo "" >> $NOTICE
+
+# next concatenate all NOTICE files from sub projects to the root file
+for i in `find . -name "NOTICE" -not -regex ".*/target/.*" -not -regex "./NOTICE"`
+do
+	echo "---------------------------------------------------------------------------" >> $NOTICE
+	echo "src/"$i | sed -e "s/\/src.*//g" >> $NOTICE
+	echo "---------------------------------------------------------------------------" >> $NOTICE
+	cat $i >> $NOTICE
+	echo >> $NOTICE
+done
+
+# clean all projects
+echo "Clean all projects"
+mvn5 clean -Pall
+
+# package and assemble the release
+echo "Package and assemble the release"
+mvn5 -ff -Dgpg.passphrase="$passphrase" -Prelease deploy javadoc:javadoc assembly:attached $1
+
+filename=`ls target/dist/apache-empire*gz`
+gpg --print-md MD5 $filename > $filename.md5
+gpg --print-md SHA1 $filename > $filename.sha
+echo "$passphrase" | gpg --passphrase-fd 0 --armor --output $filename.asc --detach-sig $filename
+
+filename=`ls target/dist/apache-empire*zip`
+gpg --print-md MD5 $filename > $filename.md5
+gpg --print-md SHA1 $filename > $filename.sha
+echo "$passphrase" | gpg --passphrase-fd 0 --armor --output $filename.asc --detach-sig $filename

Propchange: incubator/empire-db/trunk/release.sh
------------------------------------------------------------------------------
    svn:executable = *