From 61bc7708b88039cb55fcb0cc89e7c62e09720af3 Mon Sep 17 00:00:00 2001 From: Eric Van Wyk Date: Thu, 26 Sep 2013 16:15:29 -0500 Subject: [PATCH] Modified IMP build.sh script to fix where jars are copied to (per Ming's email) also changed script to use 'mvn' from wherever it is installed instead of Ming's hardcoded path --- runtime/imp/build.sh | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/runtime/imp/build.sh b/runtime/imp/build.sh index 933cd77aa..43d73660c 100755 --- a/runtime/imp/build.sh +++ b/runtime/imp/build.sh @@ -1,18 +1,25 @@ #!/bin/bash -BUILD_COMM="/home/patrick/maven3/bin/mvn" +# On CS machines, load the module 'java/maven' +# On personal machines, make sure 'mvn' is in your path. +BUILD_COMM="mvn" + +if [ ! -d ../../jars ]; then + echo "In wrong directory? Run from silver/runtime/imp as ./build.sh" + exit 1 +fi + CURR_DIR=`pwd` cd edu.umn.cs.melt.copper $BUILD_COMM clean install -cd $CURR_DIR +cd .. cd edu.umn.cs.melt.silver $BUILD_COMM clean install -cd $CURR_DIR +cd .. cd main $BUILD_COMM clean package -cp target/edu.umn.cs.melt.ide.copper-*.jar $CURR_DIR +cp target/edu.umn.cs.melt.ide.copper-*.jar ../../../jars -cd $CURR_DIR