Author: paperwing
Date: 2012-02-22 18:03:31 -0800 (Wed, 22 Feb 2012)
New Revision: 28351

Added:
   csplugins/trunk/toronto/yuedong/paperwing-impl/misc/jogl-repackager/
   
csplugins/trunk/toronto/yuedong/paperwing-impl/misc/jogl-repackager/artifact.properties
   
csplugins/trunk/toronto/yuedong/paperwing-impl/misc/jogl-repackager/download.sh
   
csplugins/trunk/toronto/yuedong/paperwing-impl/misc/jogl-repackager/extract.sh
Log:
In process of creating script set to download and repackage JOGL and gluegen as 
proper OSGi bundles; Download and jar extraction scripts completed, still needs 
to extract native libraries and prepare OSGi metadata such as Fragment-Host and 
Bundle-NativeCode

Added: 
csplugins/trunk/toronto/yuedong/paperwing-impl/misc/jogl-repackager/artifact.properties
===================================================================
--- 
csplugins/trunk/toronto/yuedong/paperwing-impl/misc/jogl-repackager/artifact.properties
                             (rev 0)
+++ 
csplugins/trunk/toronto/yuedong/paperwing-impl/misc/jogl-repackager/artifact.properties
     2012-02-23 02:03:31 UTC (rev 28351)
@@ -0,0 +1,8 @@
+gluegen_build_number=36
+gluegen_build_id=2012-02-15_18-57-27
+gluegen_build_branch=rc
+gluegen_build_commit=a87a66cca58095d24b02eda5a35bdba1177edb28
+jogl_build_number=48
+jogl_build_id=2012-02-15_19-00-31
+jogl_build_branch=rc
+jogl_build_commit=1b11ce632bf497f892b03a652e9d1b6ded3b5db9


Property changes on: 
csplugins/trunk/toronto/yuedong/paperwing-impl/misc/jogl-repackager/artifact.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: 
csplugins/trunk/toronto/yuedong/paperwing-impl/misc/jogl-repackager/download.sh
===================================================================
--- 
csplugins/trunk/toronto/yuedong/paperwing-impl/misc/jogl-repackager/download.sh 
                            (rev 0)
+++ 
csplugins/trunk/toronto/yuedong/paperwing-impl/misc/jogl-repackager/download.sh 
    2012-02-23 02:03:31 UTC (rev 28351)
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+source artifact.properties
+
+types='linux-amd64 linux-i586 macosx-universal solaris-amd64 solaris-i586 
windows-amd64 windows-i586'
+jogl_version='2.0-b'$jogl_build_number-`echo $jogl_build_id | sed s/'-'//g | 
cut -d'_' -f1`
+gluegen_version='2.0-b'$gluegen_build_number-`echo $gluegen_build_id | sed 
s/'-'//g | cut -d'_' -f1`
+
+echo Downloading JOGL version: $jogl_version
+
+for i in $types
+do
+       
url='https://jogamp.org/deployment/autobuilds/rc/jogl-b'${jogl_build_number}-${jogl_build_id}/
+       filename=jogl-$jogl_version-$i'.7z'
+       
+       echo Obtaining: $url$filename
+       curl $url$filename -o downloads/$filename --create-dirs
+done
+
+echo Downloading Gluegen version: $gluegen_version
+
+for i in $types
+do
+       
url='https://jogamp.org/deployment/autobuilds/rc/gluegen-b'${gluegen_build_number}-${gluegen_build_id}/
+       filename=gluegen-$gluegen_version-$i'.7z'
+       
+       echo Obtaining: $url$filename
+       curl $url$filename -o downloads/$filename --create-dirs
+done
+
+

Added: 
csplugins/trunk/toronto/yuedong/paperwing-impl/misc/jogl-repackager/extract.sh
===================================================================
--- 
csplugins/trunk/toronto/yuedong/paperwing-impl/misc/jogl-repackager/extract.sh  
                            (rev 0)
+++ 
csplugins/trunk/toronto/yuedong/paperwing-impl/misc/jogl-repackager/extract.sh  
    2012-02-23 02:03:31 UTC (rev 28351)
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+mkdir -p extracted_jars
+mkdir -p extracted_natives
+
+# open archives
+for i in downloads/*.7z
+do
+        7z x -y -o'extract' $i
+done
+
+# move jars
+for i in `find extract | grep '\.jar$'`
+do
+       mv $i extracted_jars/`basename $i`
+done
+
+# move native libraries
+for i in `find extract | grep '\.dll$\|\.so\|\.jnilib'`
+do
+       mv $i extracted_natives/`basename $i`
+done
+
+

-- 
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