summaryrefslogtreecommitdiff
path: root/symbian/sanity.pl
blob: eb50244dde4a5b5c731027ae26cd505ba9c0e9bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use strict;

if (exists $ENV{'!C:'}) {
  print "You are running this under Cygwin, aren't you?\n";
  print "I'm sorry but only cmd.exe will work.\n";
  exit(1);
}

if (# SDK 2.x
    $ENV{PATH} !~ m!c:\\program files\\common files\\symbian\\tools!i
    &&
    # SDK 1.2
    $ENV{PATH} !~ m!c:\\symbian\\6.1\\shared\\epoc32\\tools!i) {
  print "I think you have not installed the Symbian SDK.\n";
  exit(1);
}

unless (-f "symbian/symbianish.h") {
  print "You must run this in the top level directory.\n";
  exit(1);
}

if ($] < 5.008) {
  print "You must configure with Perl 5.8 or later.\n";
  exit(1);
}

1;