android: add tips when SDK isn't configured.

This commit is contained in:
Brad Fitzpatrick 2011-03-17 18:15:25 -07:00
parent 78c6b71b87
commit 077f362e2d
3 changed files with 19 additions and 0 deletions

View File

@ -1,7 +1,9 @@
all:
./check-environment.pl
ant debug
# Dummy target to make build.pl happy
install:
./check-environment.pl
ant debug

View File

@ -0,0 +1,14 @@
#!/usr/bin/perl
use strict;
use FindBin qw($Bin);
my $props = "$Bin/local.properties";
unless (-e $props) {
die "\n".
"**************************************************************\n".
"Can't build the Camlistore Android client; SDK not configured.\n".
"You need to create your $props file.\n".
"See local.properties.TEMPLATE for instructions.\n".
"**************************************************************\n\n";
}

View File

@ -0,0 +1,3 @@
# Copy this file to one named "local.properties" and update this path to
# wherever your Android SDK is located:
sdk.dir=/home/bradfitz/sdk/android