Author: jm
Date: 2012-06-05 11:40:46 -0700 (Tue, 05 Jun 2012)
New Revision: 29463

Added:
   csplugins/trunk/toronto/jm/cytoscape-temp/protostuff.sh
Log:
Added script for packaging protostuff


Added: csplugins/trunk/toronto/jm/cytoscape-temp/protostuff.sh
===================================================================
--- csplugins/trunk/toronto/jm/cytoscape-temp/protostuff.sh                     
        (rev 0)
+++ csplugins/trunk/toronto/jm/cytoscape-temp/protostuff.sh     2012-06-05 
18:40:46 UTC (rev 29463)
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+PROTOSTUFF_VERSION=1.0.7
+ARTIFACT_ID=protostuff-core-json-osgi
+
+mkdir build
+pushd build
+
+curl -OL 
http://protostuff.googlecode.com/files/protostuff-${PROTOSTUFF_VERSION}.zip || 
exit
+
+unzip protostuff-${PROTOSTUFF_VERSION}.zip || exit
+
+mkdir temp
+pushd temp
+for JAR in 
../protostuff-${PROTOSTUFF_VERSION}/dist/{protostuff-api,protostuff-core,protostuff-json}-${PROTOSTUFF_VERSION}.jar
+do
+    unzip ${JAR}
+done
+
+rm -rf META-INF
+
+zip -r ../${ARTIFACT_ID}.jar *
+popd
+
+bnd wrap ${ARTIFACT_ID}.jar
+
+BAR=${ARTIFACT_ID}.bar
+mvn deploy:deploy-file -DgroupId=cytoscape-temp -DartifactId=${ARTIFACT_ID} 
-Dversion=${PROTOSTUFF_VERSION} -Dpackaging=jar -Dfile=${BAR} 
-DrepositoryId=thirdparty 
-Durl=http://code.cytoscape.org/nexus/content/repositories/thirdparty/
+
+popd
+rm -rf build
\ No newline at end of file


Property changes on: csplugins/trunk/toronto/jm/cytoscape-temp/protostuff.sh
___________________________________________________________________
Added: svn:executable
   + *

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to