X-Git-Url: http://git.projectaon.org/?a=blobdiff_plain;f=common%2Fscripts%2Fgbtolatex.pl;h=0cf1e7e65f53738946fbbc49a53557a54cf45238;hb=d80f2e08f7af6c7bac69765ca41f5dcad3f5276d;hp=2b37c7e28f2d2061901ffbd5ddf6cc04b9350638;hpb=f4bdee5083ca9a72713637e1e979aa183e06faea;p=project-aon.git diff --git a/common/scripts/gbtolatex.pl b/common/scripts/gbtolatex.pl index 2b37c7e..0cf1e7e 100755 --- a/common/scripts/gbtolatex.pl +++ b/common/scripts/gbtolatex.pl @@ -39,6 +39,18 @@ $EXTRAPARMS=$ENV{'XMLPARMS'} if defined($ENV{'XMLPARMS'}); unless( $ARGV[ 0 ] ) { die "Usage:\n\t${PROGRAM_NAME} book-code [LANGUAGE] [OUTPUTFILE]\n"; } +# Check that all the binaries are were want them + +my @BINARIES; +push @BINARIES, ($XMLPROC, $JAVA); + +foreach (@BINARIES) { + if ( ! -e $_ ) { + die "$PROGRAM_NAME: Cannot find binary '".$_."'. Please install it.\n"; + } +} + + print "Reminder:\n\tDid you uncomment the LaTeX special character\n\tdeclarations in the book's XML file?\n"; my $bookCode = $ARGV[ 0 ];