X-Git-Url: http://git.projectaon.org/?p=project-aon.git;a=blobdiff_plain;f=common%2Fscripts%2Fgbtosvg.pl;h=e9fa73f4136e8545ff941d98d0a6a146f70f9aef;hp=f996ccbe8a44958e91e6d9e66bd2fc8cce5d6132;hb=d39e4e3df972ecf68b385d779ca88b846086f0a9;hpb=74c5762fd3e4d1cf8d9562b35dbf9f90f13d4f48 diff --git a/common/scripts/gbtosvg.pl b/common/scripts/gbtosvg.pl index f996ccb..e9fa73f 100755 --- 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'; + +# 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 = '';