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
/
gbtosvg.pl
diff --git
a/common/scripts/gbtosvg.pl
b/common/scripts/gbtosvg.pl
index
f996ccb
..
e9fa73f
100755
(executable)
--- a/
common/scripts/gbtosvg.pl
+++ b/
common/scripts/gbtosvg.pl
@@
-16,6
+16,19
@@
my $JAVA = '/usr/bin/java';
my $XALAN_JAR = '/usr/share/java/xalan2.jar';
my $DOT = '/usr/local/bin/dot';
my $XALAN_JAR = '/usr/share/java/xalan2.jar';
my $DOT = '/usr/local/bin/dot';
+
+# Check that all the binaries are were want them
+
+my @BINARIES;
+push @BINARIES, ($RXP, $JAVA, $XALAN_JAR, $DOT);
+
+foreach (@BINARIES) {
+ if ( ! -e $_ ) {
+ die "$PROGRAM_NAME: Cannot find binary '".$_."'. Please install it.\n";
+ }
+}
+
+
###
my $bookCode = '';
###
my $bookCode = '';