Welcome to mirror list, hosted at ThFree Co, Russian Federation.

check-dependencies.pl « scripts - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e516ea477b2e5c3b0446243c4a6543c3f1788cfa (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
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/perl

# $Id: check-dependencies.pl 1331 2007-03-26 20:06:44Z hieuhoang1972 $

my ($home, $target_dir, $release_dir, $bin_dir) = @ARGV;

#print "HOME: $home\nTARGET_DIR: $target_dir\nRELEASE_DIR: $release_dir\n";

if ($target_dir eq '' || -z $target_dir) {
  print <<EOT;
Please specify a TARGETDIR.

  For development releases you probably want the following:
  TARGETDIR=$home/releases make release

  For shared environments, you will want to set TARGETDIR to
  some appropriately common directory.

EOT
  exit 1;
}

if (-e $release_dir) {
  print "Targetdir exists! Not touching it! $release_dir";
  exit 1;
}

unless (-x "$bin_dir/GIZA++" && -x "$bin_dir/snt2cooc.out" && -x "$bin_dir/mkcls" ) {
  print <<EOT;
Please specify a BINDIR.

  The BINDIR directory must contain GIZA++, snt2cooc.out and mkcls executables.
  These are available from http://www.fjoch.com/GIZA++.html and
  http://www-i6.informatik.rwth-aachen.de/Colleagues/och/software/mkcls.html .
EOT
  exit 1;
}


exit 0;