mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-11-13 00:59:02 +03:00
02bb5540cb
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1321 1f5c12ca-751b-0410-a591-d2e778427230
42 lines
938 B
Perl
Executable File
42 lines
938 B
Perl
Executable File
#!/usr/bin/perl
|
|
|
|
# $Id$
|
|
|
|
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;
|
|
|