Author: jm
Date: 2011-06-19 22:18:14 -0700 (Sun, 19 Jun 2011)
New Revision: 25803
Modified:
csplugins/trunk/toronto/jm/repacker/repack.sh
Log:
Added support for running under cygwin
Modified: csplugins/trunk/toronto/jm/repacker/repack.sh
===================================================================
--- csplugins/trunk/toronto/jm/repacker/repack.sh 2011-06-18 01:10:34 UTC
(rev 25802)
+++ csplugins/trunk/toronto/jm/repacker/repack.sh 2011-06-20 05:18:14 UTC
(rev 25803)
@@ -4,6 +4,15 @@
python -c 'import os, sys; print os.path.realpath(sys.argv[1])' "$1"
}
+function rejar {
+ if [ -z `which cygpath` ]
+ then
+ jar cvf "$@"
+ else
+ jar cvf $(cygpath -w "$@")
+ fi
+}
+
BUNDLE_NAME=$1
shift
@@ -29,11 +38,11 @@
done
pushd "${STAGING_DIR}"
-jar cvf "${JAR_DIR}/${BUNDLE_NAME}.jar" *
+rejar "${JAR_DIR}/${BUNDLE_NAME}.jar" *
popd
pushd "${NATIVES_DIR}"
-jar cvf "${JAR_DIR}/${BUNDLE_NAME}-natives.jar" *
+rejar "${JAR_DIR}/${BUNDLE_NAME}-natives.jar" *
popd
"${SCRIPT_DIR}/wrap.sh" "${JAR_DIR}"/*.jar
\ No newline at end of file
--
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.