X-Git-Url: http://git.projectaon.org/?p=project-aon.git;a=blobdiff_plain;f=common%2Fscripts%2Fgbtoxhtml.pl;h=2a4bd3da8bdc9e0350d8afb9cac88fcd53f3252b;hp=194c30b6120015f4ed6a322893c4b7464135dcae;hb=99ff0c0408c069caca0f76d799eb6fd9646abf6b;hpb=4d7a25316ff7dc8cc39391b71de8b6a22e67041b diff --git a/common/scripts/gbtoxhtml.pl b/common/scripts/gbtoxhtml.pl index 194c30b..2a4bd3d 100755 --- a/common/scripts/gbtoxhtml.pl +++ b/common/scripts/gbtoxhtml.pl @@ -24,6 +24,17 @@ my $XALAN_JAR = '/usr/share/java/xalan2.jar'; my $RM = '/bin/rm'; my $CHMOD = '/bin/chmod'; +# Check that all the binaries are were want them + +my @BINARIES; +push @BINARIES, ($RXP, $CP, $MV, $TAR, $ZIP, $BZIP2, $JAVA, $XALAN_JAR, $RM, $CHMOD); + +foreach (@BINARIES) { + if ( ! -e $_ ) { + die "$PROGRAM_NAME: Cannot find binary '".$_."'. Please install it.\n"; + } +} + ### my $bookCode = '';