summaryrefslogtreecommitdiffstats
path: root/tools/idegen/idegen.sh
blob: 1c3ba18cc9f4dd3f5f641a941ab073436bced0f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

if [ ! -d development ]; then
    echo "Error: Run from the root of the tree."
    exit 1
fi

idegenjar=`find $ANDROID_HOST_OUT -name idegen.jar -follow | grep -v intermediates`
if [ "" = "$idegenjar" ]; then
    echo "Couldn't find idegen.jar. Please run make first."
else 
    java -cp $idegenjar Main
fi