Author: jm
Date: 2011-06-15 12:57:01 -0700 (Wed, 15 Jun 2011)
New Revision: 25760

Modified:
   csplugins/trunk/toronto/jm/repacker/repack.sh
   csplugins/trunk/toronto/jm/repacker/wrap.sh
Log:
Changed repacker scripts so it's easier to clean up the build artifacts


Modified: csplugins/trunk/toronto/jm/repacker/repack.sh
===================================================================
--- csplugins/trunk/toronto/jm/repacker/repack.sh       2011-06-15 19:40:05 UTC 
(rev 25759)
+++ csplugins/trunk/toronto/jm/repacker/repack.sh       2011-06-15 19:57:01 UTC 
(rev 25760)
@@ -3,9 +3,11 @@
 BUNDLE_NAME=$1
 shift
 
-rm -rf temp-all temp-natives
+rm -rf temp-all temp-natives temp-jar bundles
 mkdir -p temp-all
 mkdir -p temp-natives
+mkdir -p temp-jar
+mkdir -p bundles
 
 pushd temp-all
 for JAR in "$@"
@@ -14,13 +16,11 @@
     python ../extract_natives.py ${JAR} ../temp-natives
 done
 
-jar cvf ../${BUNDLE_NAME}.jar *
+jar cvf ../temp-jar/${BUNDLE_NAME}.jar *
 popd
 
 pushd temp-natives
-jar cvf ../${BUNDLE_NAME}-natives.jar *
+jar cvf ../temp-jar/${BUNDLE_NAME}-natives.jar *
 popd
 
-rm -rf bundles
-mkdir -p bundles
-./wrap.sh
\ No newline at end of file
+./wrap.sh temp-jar/*.jar
\ No newline at end of file

Modified: csplugins/trunk/toronto/jm/repacker/wrap.sh
===================================================================
--- csplugins/trunk/toronto/jm/repacker/wrap.sh 2011-06-15 19:40:05 UTC (rev 
25759)
+++ csplugins/trunk/toronto/jm/repacker/wrap.sh 2011-06-15 19:57:01 UTC (rev 
25760)
@@ -2,7 +2,7 @@
 
 BND_CMD=bnd
 
-for FILE in *.jar
+for FILE in "$@"
 do
     FRAGMENT_HOST=$(basename ${FILE} -natives.jar)
     echo ${FRAGMENT_HOST}
@@ -16,7 +16,8 @@
 done
 
 mkdir -p bundles
-for FILE in *.bar
+for FILE in "$@"
 do
-    mv "${FILE}" "bundles/$(basename ${FILE} .bar).jar"
+    SOURCE=$(dirname ${FILE})/$(basename ${FILE} .jar).bar
+    mv "${SOURCE}" "bundles/$(basename ${FILE})"
 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