Project Aon Git Repositories
/
project-aon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check that all binaries needed are installed before running
[project-aon.git]
/
common
/
scripts
/
gbtolatex.pl
diff --git
a/common/scripts/gbtolatex.pl
b/common/scripts/gbtolatex.pl
index
2b37c7e
..
0cf1e7e
100755
(executable)
--- 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"; }
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 ];
print "Reminder:\n\tDid you uncomment the LaTeX special character\n\tdeclarations in the book's XML file?\n";
my $bookCode = $ARGV[ 0 ];