1#!/bin/bash 2 3if [ ! -d development ]; then 4 echo "Error: Run from the root of the tree." 5 exit 1 6fi 7 8if [[ -z ${OUT_DIR_COMMON_BASE} ]]; then 9idegenjar=`find out -name idegen.jar -follow | grep -v intermediates` 10else 11idegenjar=`find $OUT_DIR_COMMON_BASE/$(basename "$PWD") -name idegen.jar -follow | grep -v intermediates` 12fi 13 14if [ "" = "$idegenjar" ]; then 15 echo "Couldn't find idegen.jar. Please run make first." 16else 17 java -cp $idegenjar Main 18fi 19