Skip to content

Instantly share code, notes, and snippets.

@webdevwilson
Created February 10, 2016 06:52
Show Gist options
  • Select an option

  • Save webdevwilson/e278c2ca279abfbd06f7 to your computer and use it in GitHub Desktop.

Select an option

Save webdevwilson/e278c2ca279abfbd06f7 to your computer and use it in GitHub Desktop.
#!/bin/bash
javac -d bin $(find ./src/* | grep .java)
dir=$(pwd)
cd bin
java edu/gatech/cs6310/projectOne/ProjectOne -i ../resources/medium/student_demand_600.csv
if [ $? -eq 1 ]; then
echo "Relative directory failed."
exit 1
fi
java edu/gatech/cs6310/projectOne/ProjectOne -i $dir/resources/medium/student_demand_600.csv
if [ $? -eq 1 ]; then
echo "Absolute directory failed."
exit 2
fi
echo "Both successful!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment