commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1178125 - /commons/scripts/commons-build-bayard.sh
Date Sun, 02 Oct 2011 05:16:47 GMT
Author: bayard
Date: Sun Oct  2 05:16:47 2011
New Revision: 1178125

URL: http://svn.apache.org/viewvc?rev=1178125&view=rev
Log:
Storing the shell script I use to build releases

Added:
    commons/scripts/commons-build-bayard.sh   (with props)

Added: commons/scripts/commons-build-bayard.sh
URL: http://svn.apache.org/viewvc/commons/scripts/commons-build-bayard.sh?rev=1178125&view=auto
==============================================================================
--- commons/scripts/commons-build-bayard.sh (added)
+++ commons/scripts/commons-build-bayard.sh Sun Oct  2 05:16:47 2011
@@ -0,0 +1,36 @@
+
+GROUPID=`grep groupId pom.xml | head -2 | tail -1 | sed 's/^ *<groupId>//' | sed 's/<\/groupId>//'`
+GROUPDIR=`echo ${GROUPID} | sed 's/\./\//g'`
+ARTIFACTID=`grep artifactId pom.xml | head -2 | tail -1 | sed 's/^ *<artifactId>//'
| sed 's/<\/artifactId>//'`
+VERSION=`grep version pom.xml | head -3 | tail -1 | sed 's/^ *<version>//' | sed 's/<\/version>//'`
+
+export JAVA_HOME=/home/hen/apps/jdk1.5.0_22
+export PATH=$JAVA_HOME/bin:$PATH
+export PATH=/home/hen/oss/apache/committer-tools/releases:$PATH
+
+rm -fr /home/hen/.m2/repository/${GROUPDIR}/${ARTIFACTID}
+rm -fr ../upload
+mkdir ../upload
+
+mvn -Prc -DcreateChecksum=true install
+cp -r /home/hen/.m2/repository/${GROUPDIR}/${ARTIFACTID} ../upload/maven
+
+mvn assembly:assembly site
+
+mv target/${ARTIFACTID}-${VERSION}-src.* ../upload/
+mv target/${ARTIFACTID}-${VERSION}-bin.* ../upload/
+mv target/site ../upload
+
+cd ../upload
+
+multisign.sh ${ARTIFACTID}-${VERSION}-*
+
+tar -zcf site.tgz site
+rm -fr site
+
+cd maven/${VERSION}
+jar cf ../../${ARTIFACTID}-${VERSION}-bundle.jar *.jar *.pom *.asc
+cd ../..
+rm -fr maven
+
+cd ..

Propchange: commons/scripts/commons-build-bayard.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/scripts/commons-build-bayard.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message