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