#!/bin/sh if ! [ "$1" = "fast" ] ; then cargo build || exit 1 cross build --target=x86_64-pc-windows-gnu || exit 1 fi LIB4JRS_SO=$(find target/debug -iname 'libj4rs*so') LIB4JRS_DLL=$(find target/x86_64-pc-windows-gnu/debug -iname 'j4rs*dll') J4RS_JAR=$(find target/debug -iname 'j4rs-0.10.0-jar-with-dependencies.jar') echo "LIB4JRS_SO=$LIB4JRS_SO" echo "LIB4JRS_DLL=$LIB4JRS_DLL" echo "J4RS_JAR=$J4RS_JAR" if ! [ -e "$LIB4JRS_SO" ] || ! [ -e "$LIB4JRS_DLL" ] || ! [ -e "$J4RS_JAR" ] ; then echo "Error finding j4rs library" exit 1 fi mkdir -p target/rj-deps-dir/ cp "$LIB4JRS_SO" "$LIB4JRS_DLL" "$J4RS_JAR" target/rj-deps-dir/ ( cd target/rj-deps-dir/ ; tar -czvf ../rj-deps.tar.gz . ; cd ../.. ; ) scp target/rj-deps.tar.gz cs:secure_html ssh cs chmod a+r secure_html/rj-deps.tar.gz # curl -v 'https://cs.odu.edu/~jmcateer/rj-deps.tar.gz'